![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Wire creation and editing operations. More...
#include <BRepGraph_EditorView.hxx>
Public Types | |
| enum class | CoEdgeOrderStatus { Ready , Reordered , AlreadyCurrent , AlreadyContained , Empty , InvalidWire , SizeMismatch , DuplicateCoEdge , InvalidCoEdge , CoEdgeAlreadyBound , CoEdgeNotOwnedByWire , NotPermutation , Disconnected } |
| Status returned by wire coedge-order prechecks. More... | |
| enum class | ReplaceEdgeStatus { Ready , AlreadyCurrent , InvalidWire , InvalidOldEdge , InvalidNewEdge , Disconnected } |
| Status returned by wire edge-replacement prechecks. More... | |
Public Member Functions | |
| CoEdgeOrderStatus | CheckCoEdgeOrder (const NCollection_Array1< BRepGraph_CoEdgeId > &theCoEdgeIds) const |
| Precheck free-floating CoEdges for WireOps::Add(). | |
| CoEdgeOrderStatus | CheckCoEdgeOrder (const BRepGraph_WireId theWire, const NCollection_Array1< BRepGraph_CoEdgeId > &theCoEdgeIds) const |
| Precheck owned CoEdges for WireOps::SetCoEdgeOrder(). | |
| CoEdgeOrderStatus | CheckAppendCoEdge (const BRepGraph_WireId theWire, const BRepGraph_CoEdgeId theCoEdgeId) const |
| Precheck appending a free CoEdge to an existing wire. | |
| ReplaceEdgeStatus | CheckReplaceEdge (const BRepGraph_WireId theWire, const BRepGraph_EdgeId theOldEdge, const BRepGraph_EdgeId theNewEdge, const bool theReversed) const |
| Precheck replacing one edge by another in an existing wire. | |
| BRepGraph_WireId | Add (const NCollection_Array1< BRepGraph_CoEdgeId > &theCoEdgeIds) |
| Add a wire definition from pre-created CoEdges. Each CoEdge must be free-floating (no parent wire yet). The method binds all CoEdges to the new wire and updates relation tables. | |
| void | ReplaceEdge (const BRepGraph_WireId theChildWireId, const BRepGraph_EdgeId theOldEdgeEntity, const BRepGraph_EdgeId theNewEdgeEntity, const bool theReversed) |
| Replace one edge with another in a wire definition. Updates the CoEdge's EdgeIdx to point to the new edge, adjusts orientation if theReversed, and incrementally updates relation tables. | |
| bool | RemoveCoEdge (const BRepGraph_WireId theChildWireId, const BRepGraph_CoEdgeId theCoEdgeId) |
| Detach one exact coedge entry from a wire definition. Use BRepGraph_CoEdgesOfWire::CurrentId() when removing from a wire iterator. The method removes the exact ordered coedge entry, updates relation tables, and prunes the CoEdge node when it has no other active usages. | |
| void | Reverse (const BRepGraph_WireId theWire) |
| Reverse the wire: flip the order of the wire's CoEdgeIds and flip each owned CoEdge's orientation. Used by healing/sewing to invert a loop. | |
| bool | SetCoEdgeOrder (const BRepGraph_WireId theWire, const NCollection_Array1< BRepGraph_CoEdgeId > &theCoEdgeIds) |
| Replace the ordered CoEdge relation vector with a permutation of its current content. | |
| BRepGraph_MutGuard< BRepGraphInc::WireDef > | Mut (const BRepGraph_WireId theWire) |
| Return scoped mutable wire definition guard. | |
| BRepGraph_MutGuard< BRepGraphInc::WireRef > | MutRef (const BRepGraph_WireRefId theWireRef) |
| Return scoped mutable wire reference guard. | |
| void | SetRefOrientation (const BRepGraph_WireRefId theWireRef, const BRepGraphInc::ParityOrientation theOrientation) |
| Set the orientation of a wire reference. | |
| void | SetRefOrientation (BRepGraph_MutGuard< BRepGraphInc::WireRef > &theMut, const BRepGraphInc::ParityOrientation theOrientation) |
| void | SetRefChildWireId (const BRepGraph_WireRefId theWireRef, const BRepGraph_WireId theWire) |
| Rewire a wire reference to a different wire def (rebinds WireToFaces if parent is Face). | |
| void | SetRefChildWireId (BRepGraph_MutGuard< BRepGraphInc::WireRef > &theMut, const BRepGraph_WireId theWire) |
Wire creation and editing operations.
|
strong |
Status returned by wire coedge-order prechecks.
|
strong |
Status returned by wire edge-replacement prechecks.
|
nodiscard |
Add a wire definition from pre-created CoEdges. Each CoEdge must be free-floating (no parent wire yet). The method binds all CoEdges to the new wire and updates relation tables.
| [in] | theCoEdgeIds | ordered coedge identifiers |
|
nodiscard |
Precheck appending a free CoEdge to an existing wire.
| [in] | theWire | wire definition identifier |
| [in] | theCoEdgeId | free coedge candidate |
|
nodiscard |
Precheck owned CoEdges for WireOps::SetCoEdgeOrder().
| [in] | theWire | wire definition identifier |
| [in] | theCoEdgeIds | candidate coedge identifiers |
|
nodiscard |
Precheck free-floating CoEdges for WireOps::Add().
| [in] | theCoEdgeIds | candidate coedge identifiers |
|
nodiscard |
Precheck replacing one edge by another in an existing wire.
| [in] | theWire | wire definition identifier |
| [in] | theOldEdge | edge currently used by one or more wire coedges |
| [in] | theNewEdge | replacement edge |
| [in] | theReversed | if true, replacement coedge orientation is reversed |
|
nodiscard |
Return scoped mutable wire definition guard.
|
nodiscard |
Return scoped mutable wire reference guard.
|
nodiscard |
Detach one exact coedge entry from a wire definition. Use BRepGraph_CoEdgesOfWire::CurrentId() when removing from a wire iterator. The method removes the exact ordered coedge entry, updates relation tables, and prunes the CoEdge node when it has no other active usages.
| [in] | theChildWireId | wire definition identifier |
| [in] | theCoEdgeId | exact wire-owned coedge identifier |
| void BRepGraph::EditorView::WireOps::ReplaceEdge | ( | const BRepGraph_WireId | theChildWireId, |
| const BRepGraph_EdgeId | theOldEdgeEntity, | ||
| const BRepGraph_EdgeId | theNewEdgeEntity, | ||
| const bool | theReversed ) |
Replace one edge with another in a wire definition. Updates the CoEdge's EdgeIdx to point to the new edge, adjusts orientation if theReversed, and incrementally updates relation tables.
| [in] | theChildWireId | wire definition identifier |
| [in] | theOldEdgeEntity | edge to replace |
| [in] | theNewEdgeEntity | replacement edge |
| [in] | theReversed | if true, reverse the orientation of the replacement |
| void BRepGraph::EditorView::WireOps::Reverse | ( | const BRepGraph_WireId | theWire | ) |
Reverse the wire: flip the order of the wire's CoEdgeIds and flip each owned CoEdge's orientation. Used by healing/sewing to invert a loop.
| [in] | theWire | wire definition identifier |
|
nodiscard |
Replace the ordered CoEdge relation vector with a permutation of its current content.
| [in] | theWire | wire definition identifier |
| [in] | theCoEdgeIds | new ordered CoEdge identifiers |
| void BRepGraph::EditorView::WireOps::SetRefChildWireId | ( | BRepGraph_MutGuard< BRepGraphInc::WireRef > & | theMut, |
| const BRepGraph_WireId | theWire ) |
| void BRepGraph::EditorView::WireOps::SetRefChildWireId | ( | const BRepGraph_WireRefId | theWireRef, |
| const BRepGraph_WireId | theWire ) |
Rewire a wire reference to a different wire def (rebinds WireToFaces if parent is Face).
| void BRepGraph::EditorView::WireOps::SetRefOrientation | ( | BRepGraph_MutGuard< BRepGraphInc::WireRef > & | theMut, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
| void BRepGraph::EditorView::WireOps::SetRefOrientation | ( | const BRepGraph_WireRefId | theWireRef, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a wire reference.