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

Edge geometry, curve, 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, derived from current geometry.
 
static bool IsClosed (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns true if the edge forms a topological loop, derived from vertex topology.
 
static std::pair< double, doubleRange (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns the 3D curve parameter range as (first, last).
 
static BRepGraph_VertexRefId StartVertexId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns the start vertex reference id directly.
 
static BRepGraph_VertexRefId EndVertexId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Returns the end vertex reference id directly.
 
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 BRepGraph_EdgeId FindByVertices (const BRepGraph &theGraph, const BRepGraph_VertexId theStartVertex, const BRepGraph_VertexId theEndVertex, const bool theToIgnoreOrientation=false)
 Find an active edge by its boundary vertices.
 
static BRepGraph_CoEdgeId FindPCurveCoEdgeId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace)
 Find an active coedge carrying PCurve data for the given edge-face use.
 
static BRepGraph_CoEdgeId FindPCurveCoEdgeId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace, const TopAbs_Orientation theOrientation)
 Find an active PCurve coedge for the given edge-face use and preferred orientation.
 
static BRepGraph_CoEdgeId FindCoEdgeId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace)
 Find an active coedge for the given edge-face use.
 
static BRepGraph_CoEdgeId FindCoEdgeId (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace, const TopAbs_Orientation theOrientation)
 Find an active coedge for the given edge-face use and preferred orientation.
 
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 IsSeamOnFace (const BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_FaceId theFace)
 Returns true if the edge is a seam on the given face.
 
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, and continuity accessors.

Provides tolerance, degeneracy, and parameter flags; raw and location-adjusted 3D curve access; and PCurve lookup for edge-face contexts including seam edge support.

Member Function Documentation

◆ 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, derived from current geometry.

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

◆ EndVertexId()

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

Returns the end vertex reference id directly.

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

◆ FindByVertices()

static BRepGraph_EdgeId BRepGraph_Tool::Edge::FindByVertices ( const BRepGraph & theGraph,
const BRepGraph_VertexId theStartVertex,
const BRepGraph_VertexId theEndVertex,
const bool theToIgnoreOrientation = false )
static

Find an active edge by its boundary vertices.

Parameters
[in]theGraphsource graph
[in]theStartVertexstart vertex to match
[in]theEndVertexend vertex to match
[in]theToIgnoreOrientationwhen true, also matches the reverse vertex order
Returns
edge id, or invalid if no active edge matches

◆ FindCoEdgeId() [1/2]

static BRepGraph_CoEdgeId BRepGraph_Tool::Edge::FindCoEdgeId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace )
static

Find an active coedge for the given edge-face use.

Parameters
[in]theGraphsource graph
[in]theEdgeedge definition to match
[in]theFaceface definition to match
Returns
matching coedge id, or invalid if the edge/face pair has no active coedge

◆ FindCoEdgeId() [2/2]

static BRepGraph_CoEdgeId BRepGraph_Tool::Edge::FindCoEdgeId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace,
const TopAbs_Orientation theOrientation )
static

Find an active coedge for the given edge-face use and preferred orientation.

Parameters
[in]theGraphsource graph
[in]theEdgeedge definition to match
[in]theFaceface definition to match
[in]theOrientationpreferred coedge orientation
Returns
exact orientation match when present; otherwise the first active coedge on the edge-face pair; invalid if there is no active coedge for the edge-face pair

◆ FindPCurveCoEdgeId() [1/2]

static BRepGraph_CoEdgeId BRepGraph_Tool::Edge::FindPCurveCoEdgeId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace )
static

Find an active coedge carrying PCurve data for the given edge-face use.

Parameters
[in]theGraphsource graph
[in]theEdgeedge definition to match
[in]theFaceface definition to match
Returns
matching coedge id, or invalid if the edge/face pair has no active PCurve coedge

◆ FindPCurveCoEdgeId() [2/2]

static BRepGraph_CoEdgeId BRepGraph_Tool::Edge::FindPCurveCoEdgeId ( const BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_FaceId theFace,
const TopAbs_Orientation theOrientation )
static

Find an active PCurve coedge for the given edge-face use and preferred orientation.

Parameters
[in]theGraphsource graph
[in]theEdgeedge definition to match
[in]theFaceface definition to match
[in]theOrientationpreferred coedge orientation
Returns
exact orientation match when present; otherwise the first active PCurve coedge on the edge-face pair; invalid if there is no active PCurve coedge

◆ 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

◆ 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

◆ IsClosed()

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

Returns true if the edge forms a topological loop, derived from vertex topology.

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

◆ 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

◆ IsSeamOnFace()

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

Returns true if the edge is a seam on the given face.

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

◆ 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

◆ 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

◆ StartVertexId()

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

Returns the start vertex reference id directly.

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

◆ 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: