Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
BRepGraph_Tool::Face Class Reference

Face surface, triangulation, and property accessors. More...

#include <BRepGraph_Tool.hxx>

Static Public Member Functions

static double Tolerance (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the face tolerance.
 
static bool NaturalRestriction (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the NaturalRestriction flag.
 
static bool HasSurface (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns true if the face has a surface representation.
 
static bool HasTriangulation (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns true if the face has an active triangulation.
 
static const WireRefOuterWire (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the outer wire reference, or nullptr if none.
 
static BRepGraph_WireId OuterWireId (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the outer wire definition id directly (shortcut for OuterWire(...)->WireDefId). Invalid if the face has no outer wire.
 
static const occ::handle< Geom_Surface > & Surface (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the raw surface handle (definition frame, no copy).
 
static GeomAdaptor_TransformedSurface SurfaceAdaptor (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns a surface adaptor in definition frame.
 
static GeomAdaptor_TransformedSurface SurfaceAdaptor (const BRepGraph &theGraph, const BRepGraph_FaceId theFace, const double theUFirst, const double theULast, const double theVFirst, const double theVLast)
 Returns a surface adaptor with explicit UV bounds.
 
static const occ::handle< Poly_Triangulation > & Triangulation (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the active triangulation for the face (definition frame).
 
static uint32_t NbWires (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the number of wire references on the face (outer + holes).
 
static void Bounds (const BRepGraph &theGraph, const BRepGraph_FaceId theFace, double &theUMin, double &theUMax, double &theVMin, double &theVMax)
 Returns the UV parameter bounds of the face surface. For faces with NaturalRestriction the bounds come directly from the surface. Fills out-parameters with the surface bounds; all values are set to 0.0 if the face has no surface.
 

Detailed Description

Face surface, triangulation, and property accessors.

Provides tolerance, natural restriction flag, surface handle and adaptor access (with optional UV bounds), active triangulation retrieval, and outer wire lookup.

Member Function Documentation

◆ Bounds()

static void BRepGraph_Tool::Face::Bounds ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace,
double & theUMin,
double & theUMax,
double & theVMin,
double & theVMax )
static

Returns the UV parameter bounds of the face surface. For faces with NaturalRestriction the bounds come directly from the surface. Fills out-parameters with the surface bounds; all values are set to 0.0 if the face has no surface.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
[out]theUMinminimum U parameter
[out]theUMaxmaximum U parameter
[out]theVMinminimum V parameter
[out]theVMaxmaximum V parameter

◆ HasSurface()

static bool BRepGraph_Tool::Face::HasSurface ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns true if the face has a surface representation.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
true if surface exists

◆ HasTriangulation()

static bool BRepGraph_Tool::Face::HasTriangulation ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns true if the face has an active triangulation.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
true if triangulation exists

◆ NaturalRestriction()

static bool BRepGraph_Tool::Face::NaturalRestriction ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the NaturalRestriction flag.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
true if face has natural restriction

◆ NbWires()

static uint32_t BRepGraph_Tool::Face::NbWires ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the number of wire references on the face (outer + holes).

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
wire count (includes removed refs)

◆ OuterWire()

static const WireRef * BRepGraph_Tool::Face::OuterWire ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the outer wire reference, or nullptr if none.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
pointer to the outer WireRef, or nullptr

◆ OuterWireId()

static BRepGraph_WireId BRepGraph_Tool::Face::OuterWireId ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the outer wire definition id directly (shortcut for OuterWire(...)->WireDefId). Invalid if the face has no outer wire.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
outer wire id

◆ Surface()

static const occ::handle< Geom_Surface > & BRepGraph_Tool::Face::Surface ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the raw surface handle (definition frame, no copy).

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
surface handle, or null handle if no surface

◆ SurfaceAdaptor() [1/2]

static GeomAdaptor_TransformedSurface BRepGraph_Tool::Face::SurfaceAdaptor ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns a surface adaptor in definition frame.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
surface adaptor, or empty adaptor if no surface

◆ SurfaceAdaptor() [2/2]

static GeomAdaptor_TransformedSurface BRepGraph_Tool::Face::SurfaceAdaptor ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace,
const double theUFirst,
const double theULast,
const double theVFirst,
const double theVLast )
static

Returns a surface adaptor with explicit UV bounds.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
[in]theUFirstfirst U parameter
[in]theULastlast U parameter
[in]theVFirstfirst V parameter
[in]theVLastlast V parameter
Returns
surface adaptor with bounds, or empty adaptor if no surface

◆ Tolerance()

static double BRepGraph_Tool::Face::Tolerance ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the face tolerance.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
tolerance value

◆ Triangulation()

static const occ::handle< Poly_Triangulation > & BRepGraph_Tool::Face::Triangulation ( const BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Returns the active triangulation for the face (definition frame).

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
triangulation handle, or null handle if none

The documentation for this class was generated from the following file: