Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph::TopoView::EdgeOps Class Reference

Edge-oriented topology queries. More...

#include <BRepGraph_TopoView.hxx>

Public Member Functions

uint32_t Nb () const
 Return the total number of edge definitions (including soft-removed).
uint32_t NbActive () const
 Return the number of active (non-soft-removed) edge definitions.
BRepGraph_EdgeId StartId () const
 Return the first valid edge identifier for iteration.
BRepGraph_EdgeId EndId () const
 Return the past-the-end edge identifier (one past the last valid id).
const BRepGraphInc::EdgeDef & Definition (const BRepGraph_EdgeId theEdge) const
 Return the definition struct for the given edge.
const BRepGraphInc::EdgeRelations & Relations (const BRepGraph_EdgeId theEdge) const
 Return the relation struct (adjacency lists) for the given edge.
uint32_t NbFaces (const BRepGraph_EdgeId theEdge) const
 Return the number of active faces adjacent to the given edge through active coedges.
BRepGraph_WiresOfEdge WiresOf (const BRepGraph_EdgeId theEdge) const
 Return an iterator over active wires that reference the given edge through active coedges.
BRepGraph_WiresOfEdge WiresOf (const BRepGraph_EdgeId theEdge, const uint32_t theStartIndex) const
 Return an iterator over active wires from a stored edge-coedge relation index.
BRepGraph_FacesOfEdge FacesOf (const BRepGraph_EdgeId theEdge) const
 Return an iterator over active faces adjacent to the given edge through active coedges.
BRepGraph_FacesOfEdge FacesOf (const BRepGraph_EdgeId theEdge, const uint32_t theStartIndex) const
 Return an iterator over active faces from a stored edge-coedge relation index.
const NCollection_LinearVector< BRepGraph_CoEdgeId > & CoEdges (const BRepGraph_EdgeId theEdge) const
 Return the coedges that reference the given edge.
occ::handle< Geom_Curve > Curve3D (const BRepGraph_EdgeId theEdge) const
 Return the 3D curve handle for the given edge. May be null if the edge has no 3D curve representation.

Detailed Description

Edge-oriented topology queries.

Member Function Documentation

◆ CoEdges()

const NCollection_LinearVector< BRepGraph_CoEdgeId > & BRepGraph::TopoView::EdgeOps::CoEdges ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return the coedges that reference the given edge.

Parameters
[in]theEdgetyped edge identifier

◆ Curve3D()

occ::handle< Geom_Curve > BRepGraph::TopoView::EdgeOps::Curve3D ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return the 3D curve handle for the given edge. May be null if the edge has no 3D curve representation.

Parameters
[in]theEdgetyped edge identifier

◆ Definition()

const BRepGraphInc::EdgeDef & BRepGraph::TopoView::EdgeOps::Definition ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return the definition struct for the given edge.

Parameters
[in]theEdgetyped edge identifier

◆ EndId()

BRepGraph_EdgeId BRepGraph::TopoView::EdgeOps::EndId ( ) const
inlinenodiscard

Return the past-the-end edge identifier (one past the last valid id).

◆ FacesOf() [1/2]

BRepGraph_FacesOfEdge BRepGraph::TopoView::EdgeOps::FacesOf ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return an iterator over active faces adjacent to the given edge through active coedges.

Parameters
[in]theEdgetyped edge definition identifier
Returns
iterator positioned at the first active face, or at end if none exists

◆ FacesOf() [2/2]

BRepGraph_FacesOfEdge BRepGraph::TopoView::EdgeOps::FacesOf ( const BRepGraph_EdgeId theEdge,
const uint32_t theStartIndex ) const
nodiscard

Return an iterator over active faces from a stored edge-coedge relation index.

Parameters
[in]theEdgetyped edge definition identifier
[in]theStartIndexzero-based index in EdgeRelations::CoEdgeIds to resume from
Returns
iterator positioned at the first active face at or after theStartIndex

◆ Nb()

uint32_t BRepGraph::TopoView::EdgeOps::Nb ( ) const
nodiscard

Return the total number of edge definitions (including soft-removed).

◆ NbActive()

uint32_t BRepGraph::TopoView::EdgeOps::NbActive ( ) const
nodiscard

Return the number of active (non-soft-removed) edge definitions.

◆ NbFaces()

uint32_t BRepGraph::TopoView::EdgeOps::NbFaces ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return the number of active faces adjacent to the given edge through active coedges.

Parameters
[in]theEdgetyped edge definition identifier
Returns
active adjacent face count

◆ Relations()

const BRepGraphInc::EdgeRelations & BRepGraph::TopoView::EdgeOps::Relations ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return the relation struct (adjacency lists) for the given edge.

Parameters
[in]theEdgetyped edge identifier

◆ StartId()

BRepGraph_EdgeId BRepGraph::TopoView::EdgeOps::StartId ( ) const
inlinenodiscard

Return the first valid edge identifier for iteration.

◆ WiresOf() [1/2]

BRepGraph_WiresOfEdge BRepGraph::TopoView::EdgeOps::WiresOf ( const BRepGraph_EdgeId theEdge) const
nodiscard

Return an iterator over active wires that reference the given edge through active coedges.

Parameters
[in]theEdgetyped edge definition identifier
Returns
iterator positioned at the first active wire, or at end if none exists

◆ WiresOf() [2/2]

BRepGraph_WiresOfEdge BRepGraph::TopoView::EdgeOps::WiresOf ( const BRepGraph_EdgeId theEdge,
const uint32_t theStartIndex ) const
nodiscard

Return an iterator over active wires from a stored edge-coedge relation index.

Parameters
[in]theEdgetyped edge definition identifier
[in]theStartIndexzero-based index in EdgeRelations::CoEdgeIds to resume from
Returns
iterator positioned at the first active wire at or after theStartIndex

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