![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Edge geometry, curve, polygon, and continuity accessors. More...
#include <BRepGraph_Tool.hxx>
Static Public Member Functions | |
| static double | Tolerance (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the edge tolerance. | |
| static bool | Degenerated (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns true if the edge is degenerate (collapses to a point on surface). | |
| static bool | SameParameter (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the SameParameter flag. | |
| static bool | SameRange (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the SameRange flag. | |
| static std::pair< double, double > | Range (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the 3D curve parameter range as (first, last). | |
| static const VertexRef & | StartVertexRef (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the start vertex reference entry (carries Location and Orientation). | |
| static const VertexRef & | EndVertexRef (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the end vertex reference entry (carries Location and Orientation). | |
| static BRepGraph_VertexId | StartVertexId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
Returns the start vertex definition id directly (shortcut for StartVertexRef(...).VertexDefId). Invalid if the edge has no start vertex. | |
| static BRepGraph_VertexId | EndVertexId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
Returns the end vertex definition id directly (shortcut for EndVertexRef(...).VertexDefId). Invalid if the edge has no end vertex. | |
| static bool | HasCurve (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns true if the edge has a 3D curve representation. | |
| static const occ::handle< Geom_Curve > & | Curve (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the raw 3D curve handle (definition frame, no copy). | |
| static occ::handle< Geom_Curve > | Curve (const BRepGraph &theGraph, const CoEdgeUsage &theRef) |
| Returns the transformed 3D curve handle via CoEdgeUsage (applies Location, may copy). | |
| static GeomAdaptor_TransformedCurve | CurveAdaptor (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the 3D curve adaptor in definition frame (identity Trsf). | |
| static GeomAdaptor_TransformedCurve | CurveAdaptor (const BRepGraph &theGraph, const CoEdgeUsage &theRef) |
| Returns the 3D curve adaptor via CoEdgeUsage (applies edge-in-wire Location in Trsf). Falls back to CurveOnSurface when no 3D curve exists. | |
| static bool | HasPolygon3D (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns true if the edge has a 3D polygon discretization. | |
| static const occ::handle< Poly_Polygon3D > & | Polygon3D (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the 3D polygon handle (definition frame). | |
| static bool | HasContinuity (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace1, const BRepGraph_FaceId theFace2) |
| Returns true if the edge has continuity info between two faces. | |
| static GeomAbs_Shape | Continuity (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace1, const BRepGraph_FaceId theFace2) |
| Returns the geometric continuity between two adjacent faces. | |
| static GeomAbs_Shape | MaxContinuity (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the maximum continuity across all face pairs for this edge. | |
| static uint32_t | NbFaces (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns the number of faces that reference this edge via coedges. | |
| static bool | IsManifold (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns true if the edge is shared by exactly two faces (manifold). | |
| static bool | IsBoundary (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge) |
| Returns true if the edge belongs to exactly one face (boundary / free edge). | |
| static bool | IsClosedOnFace (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace) |
| Returns true if the edge has two PCurves on a face (seam/closed surface). | |
| static const CoEdgeDef * | FindPCurve (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace) |
| Finds the CoEdge entity for an edge on a face. | |
| static const CoEdgeDef * | FindPCurve (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace, const TopAbs_Orientation theOri) |
| Finds the CoEdge entity with specific orientation (for seam edges). | |
| static occ::handle< Adaptor3d_CurveOnSurface > | CurveOnSurface (const BRepGraph &theGraph, const CoEdgeUsage &theRef, const BRepGraph_FaceId theFace) |
| Returns a CurveOnSurface adaptor built from a CoEdgeUsage and face. | |
Edge geometry, curve, polygon, and continuity accessors.
Provides tolerance, degeneracy, and parameter flags; raw and location-adjusted 3D curve access; polygon discretization; continuity queries between adjacent faces; and PCurve lookup for edge-face contexts including seam edge support.
|
static |
Returns the geometric continuity between two adjacent faces.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
| [in] | theFace1 | typed first face definition identifier |
| [in] | theFace2 | typed second face definition identifier |
|
static |
Returns the raw 3D curve handle (definition frame, no copy).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the transformed 3D curve handle via CoEdgeUsage (applies Location, may copy).
| [in] | theGraph | source graph |
| [in] | theRef | coedge incidence reference carrying Location |
|
static |
Returns the 3D curve adaptor in definition frame (identity Trsf).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the 3D curve adaptor via CoEdgeUsage (applies edge-in-wire Location in Trsf). Falls back to CurveOnSurface when no 3D curve exists.
| [in] | theGraph | source graph |
| [in] | theRef | coedge incidence reference carrying Location |
|
static |
Returns a CurveOnSurface adaptor built from a CoEdgeUsage and face.
| [in] | theGraph | source graph |
| [in] | theRef | coedge incidence reference |
| [in] | theFace | typed face definition identifier |
|
static |
Returns true if the edge is degenerate (collapses to a point on surface).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the end vertex definition id directly (shortcut for EndVertexRef(...).VertexDefId). Invalid if the edge has no end vertex.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the end vertex reference entry (carries Location and Orientation).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Finds the CoEdge entity for an edge on a face.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
| [in] | theFace | typed face definition identifier |
|
static |
Finds the CoEdge entity with specific orientation (for seam edges).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
| [in] | theFace | typed face definition identifier |
| [in] | theOri | edge orientation on the face |
|
static |
Returns true if the edge has continuity info between two faces.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
| [in] | theFace1 | typed first face definition identifier |
| [in] | theFace2 | typed second face definition identifier |
|
static |
Returns true if the edge has a 3D curve representation.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns true if the edge has a 3D polygon discretization.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns true if the edge belongs to exactly one face (boundary / free edge).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns true if the edge has two PCurves on a face (seam/closed surface).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
| [in] | theFace | typed face definition identifier |
|
static |
Returns true if the edge is shared by exactly two faces (manifold).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the maximum continuity across all face pairs for this edge.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the number of faces that reference this edge via coedges.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the 3D polygon handle (definition frame).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the 3D curve parameter range as (first, last).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the SameParameter flag.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the SameRange flag.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the start vertex definition id directly (shortcut for StartVertexRef(...).VertexDefId). Invalid if the edge has no start vertex.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the start vertex reference entry (carries Location and Orientation).
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |
|
static |
Returns the edge tolerance.
| [in] | theGraph | source graph |
| [in] | theEdge | typed edge definition identifier |