OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
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 WireUsage Usage (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Resolves a wire reference id to a lightweight usage value.
 
static bool IsClosed (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns true if the wire is topologically closed, derived from ordered coedge chain.
 
static bool IsClosed (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Returns true if the referenced wire is topologically closed.
 
static uint32_t NbCoEdges (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Number of CoEdge usages in the wire (raw count: seam halves count twice, matching TopoDS_Iterator(wire) semantics).
 
static uint32_t NbCoEdges (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Number of CoEdge usages in the referenced wire.
 
static uint32_t NbDistinctEdges (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Number of distinct underlying edges in the wire (seam halves count once).
 
static uint32_t NbDistinctEdges (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Number of distinct underlying edges in the referenced wire.
 
static BRepGraph_FaceId FaceOf (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns the first owning face for this wire via relation tables. Returns an invalid id if the wire has no owning face (free wire).
 
static BRepGraph_FaceId FaceOf (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Returns the first owning face for the referenced wire.
 
static bool IsOuter (const BRepGraph &theGraph, const BRepGraph_WireId theWire)
 Returns true if this wire is the first active wire of its owning face. Scans WireRefs that reference this wire. Returns false for free wires (no owning face).
 
static bool IsOuter (const BRepGraph &theGraph, const BRepGraph_WireRefId theWireRef)
 Returns true if the referenced wire is the outer wire of its owning face.
 

Detailed Description

Wire property accessors.

Provides wire closure, size, and ownership queries. For ordered coedge traversal, use BRepGraph_CoEdgesOfWire or TopoView::Wires().Relations(theWire).CoEdgeIds.

Member Function Documentation

◆ FaceOf() [1/2]

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

Returns the first owning face for this wire via relation tables. 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

◆ FaceOf() [2/2]

static BRepGraph_FaceId BRepGraph_Tool::Wire::FaceOf ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Returns the first owning face for the referenced wire.

◆ IsClosed() [1/2]

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

Returns true if the wire is topologically closed, derived from ordered coedge chain.

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

◆ IsClosed() [2/2]

static bool BRepGraph_Tool::Wire::IsClosed ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Returns true if the referenced wire is topologically closed.

◆ IsOuter() [1/2]

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

Returns true if this wire is the first active wire 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

◆ IsOuter() [2/2]

static bool BRepGraph_Tool::Wire::IsOuter ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Returns true if the referenced wire is the outer wire of its owning face.

◆ NbCoEdges() [1/2]

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

Number of CoEdge usages 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

◆ NbCoEdges() [2/2]

static uint32_t BRepGraph_Tool::Wire::NbCoEdges ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Number of CoEdge usages in the referenced wire.

◆ NbDistinctEdges() [1/2]

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 ChildEdgeIds reachable from the wire's CoEdgeIds

◆ NbDistinctEdges() [2/2]

static uint32_t BRepGraph_Tool::Wire::NbDistinctEdges ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Number of distinct underlying edges in the referenced wire.

◆ Usage()

static WireUsage BRepGraph_Tool::Wire::Usage ( const BRepGraph & theGraph,
const BRepGraph_WireRefId theWireRef )
static

Resolves a wire reference id to a lightweight usage value.

Parameters
[in]theGraphsource graph
[in]theWireReftyped wire reference identifier
Returns
wire usage, or invalid usage if the reference is invalid or removed

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