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

Wire property accessors. More...

#include <BRepGraph_Tool.hxx>

Static Public Member Functions

static bool IsClosed (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns true if the wire is topologically closed.
 
static uint32_t NbCoEdges (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Number of CoEdge references in the wire (raw count: seam halves count twice, matching TopoDS_Iterator(wire) semantics).
 
static uint32_t NbDistinctEdges (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Number of distinct underlying edges in the wire (seam halves count once).
 
static BRepGraph_FaceId FaceOf (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns the first owning face for this wire via the reverse-index table. Returns an invalid id if the wire has no owning face (free wire).
 
static bool IsOuter (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns true if this wire is the outer boundary (IsOuter flag) of its owning face. Scans WireRefs that reference this wire. Returns false for free wires (no owning face).
 

Detailed Description

Wire property accessors.

Provides wire closure, size, and ownership queries. For ordered edge traversal, use BRepGraphInc_WireExplorer or access the WireDef::CoEdgeRefIds vector directly via TopoView.

Member Function Documentation

◆ FaceOf()

static BRepGraph_FaceId BRepGraph_Tool::Wire::FaceOf ( const BRepGraph & theGraph,
const BRepGraph_WireId theWire )
static

Returns the first owning face for this wire via the reverse-index table. Returns an invalid id if the wire has no owning face (free wire).

Parameters
[in]theGraphsource graph
[in]theWiretyped wire definition identifier
Returns
owning face id, or invalid

◆ IsClosed()

static bool BRepGraph_Tool::Wire::IsClosed ( const BRepGraph & theGraph,
const BRepGraph_WireId theWire )
static

Returns true if the wire is topologically closed.

Parameters
[in]theGraphsource graph
[in]theWiretyped wire definition identifier
Returns
true if closed

◆ IsOuter()

static bool BRepGraph_Tool::Wire::IsOuter ( const BRepGraph & theGraph,
const BRepGraph_WireId theWire )
static

Returns true if this wire is the outer boundary (IsOuter flag) of its owning face. Scans WireRefs that reference this wire. Returns false for free wires (no owning face).

Parameters
[in]theGraphsource graph
[in]theWiretyped wire definition identifier
Returns
true if outer wire

◆ NbCoEdges()

static uint32_t BRepGraph_Tool::Wire::NbCoEdges ( const BRepGraph & theGraph,
const BRepGraph_WireId theWire )
static

Number of CoEdge references in the wire (raw count: seam halves count twice, matching TopoDS_Iterator(wire) semantics).

Parameters
[in]theGraphsource graph
[in]theWiretyped wire definition identifier
Returns
number of coedge entries

◆ NbDistinctEdges()

static uint32_t BRepGraph_Tool::Wire::NbDistinctEdges ( const BRepGraph & theGraph,
const BRepGraph_WireId theWire )
static

Number of distinct underlying edges in the wire (seam halves count once).

Parameters
[in]theGraphsource graph
[in]theWiretyped wire definition identifier
Returns
number of distinct EdgeDefIds reachable from the wire's CoEdgeRefIds

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