Wire property accessors.
More...
#include <BRepGraph_Tool.hxx>
|
| 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.
|
Wire property accessors.
Provides wire closure, size, and ownership queries. For ordered coedge traversal, use BRepGraph_CoEdgesOfWire or TopoView::Wires().Relations(theWire).CoEdgeIds.
◆ FaceOf() [1/2]
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] | theGraph | source graph |
| [in] | theWire | typed wire definition identifier |
- Returns
- owning face id, or invalid
◆ FaceOf() [2/2]
Returns the first owning face for the referenced wire.
◆ IsClosed() [1/2]
Returns true if the wire is topologically closed, derived from ordered coedge chain.
- Parameters
-
| [in] | theGraph | source graph |
| [in] | theWire | typed wire definition identifier |
- Returns
- true if closed
◆ IsClosed() [2/2]
Returns true if the referenced wire is topologically closed.
◆ IsOuter() [1/2]
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] | theGraph | source graph |
| [in] | theWire | typed wire definition identifier |
- Returns
- true if outer wire
◆ IsOuter() [2/2]
Returns true if the referenced wire is the outer wire of its owning face.
◆ NbCoEdges() [1/2]
Number of CoEdge usages in the wire (raw count: seam halves count twice, matching TopoDS_Iterator(wire) semantics).
- Parameters
-
| [in] | theGraph | source graph |
| [in] | theWire | typed wire definition identifier |
- Returns
- number of coedge entries
◆ NbCoEdges() [2/2]
Number of CoEdge usages in the referenced wire.
◆ NbDistinctEdges() [1/2]
Number of distinct underlying edges in the wire (seam halves count once).
- Parameters
-
| [in] | theGraph | source graph |
| [in] | theWire | typed wire definition identifier |
- Returns
- number of distinct ChildEdgeIds reachable from the wire's CoEdgeIds
◆ NbDistinctEdges() [2/2]
Number of distinct underlying edges in the referenced wire.
◆ Usage()
Resolves a wire reference id to a lightweight usage value.
- Parameters
-
| [in] | theGraph | source graph |
| [in] | theWireRef | typed 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: