OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
Loading...
Searching...
No Matches
Static Public Member Functions
BRepGraph_Tool::Face Class Reference

Face surface and property accessors. More...

#include <BRepGraph_Tool.hxx>

Static Public Member Functions

static FaceUsage Usage (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Resolves a face reference id to a lightweight usage value.
 
static double Tolerance (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the face tolerance.
 
static double Tolerance (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns the face tolerance by face reference identifier.
 
static bool HasSurface (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns true if the face has a surface representation.
 
static bool HasSurface (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns true if the face reference resolves to a face with a surface.
 
static BRepGraph_WireId OuterWire (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the outer wire definition id directly.
 
static BRepGraph_WireId OuterWire (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns the outer wire definition id by face reference identifier.
 
static const occ::handle< Geom_Surface > & Surface (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the raw surface handle (definition frame, no copy).
 
static const occ::handle< Geom_Surface > & Surface (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns the raw surface handle by face reference identifier.
 
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 FaceUsage &theRef)
 Returns a surface adaptor with FaceUsage Location applied.
 
static GeomAdaptor_TransformedSurface SurfaceAdaptor (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns a surface adaptor by face reference identifier with reference Location applied.
 
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 GeomAdaptor_TransformedSurface SurfaceAdaptor (const BRepGraph &theGraph, const FaceUsage &theRef, const double theUFirst, const double theULast, const double theVFirst, const double theVLast)
 Returns a surface adaptor with explicit UV bounds and FaceUsage Location applied.
 
static GeomAdaptor_TransformedSurface SurfaceAdaptor (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef, const double theUFirst, const double theULast, const double theVFirst, const double theVLast)
 Returns a surface adaptor with explicit UV bounds by face reference identifier.
 
static uint32_t NbWires (const BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Returns the number of wire references on the face (outer + holes).
 
static uint32_t NbWires (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef)
 Returns the number of wire references by face reference identifier.
 
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. Fills out-parameters with the surface bounds; all values are set to 0.0 if the face has no surface.
 
static void Bounds (const BRepGraph &theGraph, const BRepGraph_FaceRefId theFaceRef, double &theUMin, double &theUMax, double &theVMin, double &theVMax)
 Returns the UV parameter bounds by face reference identifier.
 

Detailed Description

Face surface and property accessors.

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

Member Function Documentation

◆ Bounds() [1/2]

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. 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

◆ Bounds() [2/2]

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

Returns the UV parameter bounds by face reference identifier.

◆ HasSurface() [1/2]

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

◆ HasSurface() [2/2]

static bool BRepGraph_Tool::Face::HasSurface ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Returns true if the face reference resolves to a face with a surface.

◆ NbWires() [1/2]

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)

◆ NbWires() [2/2]

static uint32_t BRepGraph_Tool::Face::NbWires ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Returns the number of wire references by face reference identifier.

◆ OuterWire() [1/2]

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

Returns the outer wire definition id directly.

Parameters
[in]theGraphsource graph
[in]theFacetyped face definition identifier
Returns
outer wire id, or invalid if the face has no wire

◆ OuterWire() [2/2]

static BRepGraph_WireId BRepGraph_Tool::Face::OuterWire ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Returns the outer wire definition id by face reference identifier.

◆ Surface() [1/2]

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

◆ Surface() [2/2]

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

Returns the raw surface handle by face reference identifier.

◆ SurfaceAdaptor() [1/6]

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/6]

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

◆ SurfaceAdaptor() [3/6]

static GeomAdaptor_TransformedSurface BRepGraph_Tool::Face::SurfaceAdaptor ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Returns a surface adaptor by face reference identifier with reference Location applied.

◆ SurfaceAdaptor() [4/6]

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

Returns a surface adaptor with explicit UV bounds by face reference identifier.

◆ SurfaceAdaptor() [5/6]

static GeomAdaptor_TransformedSurface BRepGraph_Tool::Face::SurfaceAdaptor ( const BRepGraph & theGraph,
const FaceUsage & theRef )
static

Returns a surface adaptor with FaceUsage Location applied.

◆ SurfaceAdaptor() [6/6]

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

Returns a surface adaptor with explicit UV bounds and FaceUsage Location applied.

◆ Tolerance() [1/2]

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

◆ Tolerance() [2/2]

static double BRepGraph_Tool::Face::Tolerance ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Returns the face tolerance by face reference identifier.

◆ Usage()

static FaceUsage BRepGraph_Tool::Face::Usage ( const BRepGraph & theGraph,
const BRepGraph_FaceRefId theFaceRef )
static

Resolves a face reference id to a lightweight usage value.

Parameters
[in]theGraphsource graph
[in]theFaceReftyped face reference identifier
Returns
face usage, or invalid usage if the reference is invalid or removed

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