Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
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, double > Range (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_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 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_CurveOnSurface > CurveOnSurface (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]

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

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]

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

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]

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

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]

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

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()

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

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()

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

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()

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

Returns the end vertex reference id directly.

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

◆ FindByVertices()

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

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]

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

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]

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

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]

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

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]

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

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()

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

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()

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

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()

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

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()

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

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()

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

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()

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

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

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

◆ Range()

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

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()

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

Returns the start vertex reference id directly.

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

◆ Tolerance()

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

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: