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

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, doubleRange (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns the 3D curve parameter range as (first, last).
 
static const VertexRefStartVertexRef (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns the start vertex reference entry (carries Location and Orientation).
 
static const VertexRefEndVertexRef (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_CurveCurve (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 CoEdgeDefFindPCurve (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace)
 Finds the CoEdge entity for an edge on a face.
 
static const CoEdgeDefFindPCurve (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_CurveOnSurfaceCurveOnSurface (const BRepGraph &theGraph, const CoEdgeUsage &theRef, const BRepGraph_FaceId theFace)
 Returns a CurveOnSurface adaptor built from a CoEdgeUsage and face.
 

Detailed Description

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.

Member Function Documentation

◆ Continuity()

static GeomAbs_Shape BRepGraph_Tool::Edge::Continuity ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace1,
const BRepGraph_FaceId theFace2 )
static

Returns the geometric continuity between two adjacent faces.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
[in]theFace1typed first face definition identifier
[in]theFace2typed second face definition identifier
Returns
continuity order (GeomAbs_C0 if not found)

◆ Curve() [1/2]

static const occ::handle< Geom_Curve > & BRepGraph_Tool::Edge::Curve ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the raw 3D curve handle (definition frame, no copy).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
curve handle, or null handle if no curve

◆ Curve() [2/2]

static occ::handle< Geom_Curve > BRepGraph_Tool::Edge::Curve ( const BRepGraph & theGraph,
const CoEdgeUsage & theRef )
static

Returns the transformed 3D curve handle via CoEdgeUsage (applies Location, may copy).

Parameters
[in]theGraphsource graph
[in]theRefcoedge incidence reference carrying Location
Returns
transformed curve handle

◆ CurveAdaptor() [1/2]

static GeomAdaptor_TransformedCurve BRepGraph_Tool::Edge::CurveAdaptor ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the 3D curve adaptor in definition frame (identity Trsf).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
curve adaptor, or empty adaptor if no curve

◆ CurveAdaptor() [2/2]

static GeomAdaptor_TransformedCurve BRepGraph_Tool::Edge::CurveAdaptor ( const BRepGraph & theGraph,
const CoEdgeUsage & theRef )
static

Returns the 3D curve adaptor via CoEdgeUsage (applies edge-in-wire Location in Trsf). Falls back to CurveOnSurface when no 3D curve exists.

Parameters
[in]theGraphsource graph
[in]theRefcoedge incidence reference carrying Location
Returns
curve adaptor with Location applied

◆ CurveOnSurface()

static occ::handle< Adaptor3d_CurveOnSurface > BRepGraph_Tool::Edge::CurveOnSurface ( const BRepGraph & theGraph,
const CoEdgeUsage & theRef,
const BRepGraph_FaceId theFace )
static

Returns a CurveOnSurface adaptor built from a CoEdgeUsage and face.

Parameters
[in]theGraphsource graph
[in]theRefcoedge incidence reference
[in]theFacetyped face definition identifier
Returns
adaptor handle, or null if PCurve or surface is missing

◆ Degenerated()

static bool BRepGraph_Tool::Edge::Degenerated ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns true if the edge is degenerate (collapses to a point on surface).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if degenerate

◆ EndVertexId()

static BRepGraph_VertexId BRepGraph_Tool::Edge::EndVertexId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the end vertex definition id directly (shortcut for EndVertexRef(...).VertexDefId). Invalid if the edge has no end vertex.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
end vertex id

◆ EndVertexRef()

static const VertexRef & BRepGraph_Tool::Edge::EndVertexRef ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the end vertex reference entry (carries Location and Orientation).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
const reference to the end VertexRef

◆ FindPCurve() [1/2]

static const CoEdgeDef * BRepGraph_Tool::Edge::FindPCurve ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace )
static

Finds the CoEdge entity for an edge on a face.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
[in]theFacetyped face definition identifier
Returns
pointer to CoEdgeDef, or nullptr if not found

◆ FindPCurve() [2/2]

static const CoEdgeDef * BRepGraph_Tool::Edge::FindPCurve ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace,
const TopAbs_Orientation theOri )
static

Finds the CoEdge entity with specific orientation (for seam edges).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
[in]theFacetyped face definition identifier
[in]theOriedge orientation on the face
Returns
pointer to CoEdgeDef, or nullptr if not found

◆ HasContinuity()

static bool BRepGraph_Tool::Edge::HasContinuity ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace1,
const BRepGraph_FaceId theFace2 )
static

Returns true if the edge has continuity info between two faces.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
[in]theFace1typed first face definition identifier
[in]theFace2typed second face definition identifier
Returns
true if continuity is recorded

◆ HasCurve()

static bool BRepGraph_Tool::Edge::HasCurve ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns true if the edge has a 3D curve representation.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if edge has a 3D curve

◆ HasPolygon3D()

static bool BRepGraph_Tool::Edge::HasPolygon3D ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns true if the edge has a 3D polygon discretization.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if edge has a polygon

◆ IsBoundary()

static bool BRepGraph_Tool::Edge::IsBoundary ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns true if the edge belongs to exactly one face (boundary / free edge).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if boundary

◆ IsClosedOnFace()

static bool BRepGraph_Tool::Edge::IsClosedOnFace ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace )
static

Returns true if the edge has two PCurves on a face (seam/closed surface).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
[in]theFacetyped face definition identifier
Returns
true if the edge is a seam on this face

◆ IsManifold()

static bool BRepGraph_Tool::Edge::IsManifold ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns true if the edge is shared by exactly two faces (manifold).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if manifold

◆ MaxContinuity()

static GeomAbs_Shape BRepGraph_Tool::Edge::MaxContinuity ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the maximum continuity across all face pairs for this edge.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
maximum continuity order

◆ NbFaces()

static uint32_t BRepGraph_Tool::Edge::NbFaces ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the number of faces that reference this edge via coedges.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
face count

◆ Polygon3D()

static const occ::handle< Poly_Polygon3D > & BRepGraph_Tool::Edge::Polygon3D ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the 3D polygon handle (definition frame).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
polygon handle, or null handle if no polygon

◆ Range()

static std::pair< double, double > BRepGraph_Tool::Edge::Range ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the 3D curve parameter range as (first, last).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
pair of (first, last) parameters

◆ SameParameter()

static bool BRepGraph_Tool::Edge::SameParameter ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the SameParameter flag.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if all PCurves are reparametrized to the same range as the 3D curve

◆ SameRange()

static bool BRepGraph_Tool::Edge::SameRange ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the SameRange flag.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
true if PCurve parameter range equals the 3D curve range

◆ StartVertexId()

static BRepGraph_VertexId BRepGraph_Tool::Edge::StartVertexId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the start vertex definition id directly (shortcut for StartVertexRef(...).VertexDefId). Invalid if the edge has no start vertex.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
start vertex id

◆ StartVertexRef()

static const VertexRef & BRepGraph_Tool::Edge::StartVertexRef ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the start vertex reference entry (carries Location and Orientation).

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
const reference to the start VertexRef

◆ Tolerance()

static double BRepGraph_Tool::Edge::Tolerance ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Returns the edge tolerance.

Parameters
[in]theGraphsource graph
[in]theEdgetyped edge definition identifier
Returns
tolerance value

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