![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
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 WireRef * | OuterWire (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. | |
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.
|
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.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
| [out] | theUMin | minimum U parameter |
| [out] | theUMax | maximum U parameter |
| [out] | theVMin | minimum V parameter |
| [out] | theVMax | maximum V parameter |
|
static |
Returns true if the face has a surface representation.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns true if the face has an active triangulation.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the NaturalRestriction flag.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the number of wire references on the face (outer + holes).
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the outer wire reference, or nullptr if none.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the outer wire definition id directly (shortcut for OuterWire(...)->WireDefId). Invalid if the face has no outer wire.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the raw surface handle (definition frame, no copy).
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns a surface adaptor in definition frame.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns a surface adaptor with explicit UV bounds.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
| [in] | theUFirst | first U parameter |
| [in] | theULast | last U parameter |
| [in] | theVFirst | first V parameter |
| [in] | theVLast | last V parameter |
|
static |
Returns the face tolerance.
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |
|
static |
Returns the active triangulation for the face (definition frame).
| [in] | theGraph | source graph |
| [in] | theFace | typed face definition identifier |