![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Edge creation and editing operations. More...
#include <BRepGraph_EditorView.hxx>
Public Member Functions | |
| BRepGraph_EdgeId | Add (const BRepGraph_VertexId theStartVtx, const BRepGraph_VertexId theEndVtx, const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast, const double theTolerance) |
| Add an edge definition to the graph. | |
| void | Split (const BRepGraph_EdgeId theEdgeEntity, const BRepGraph_VertexId theSplitVertex, const double theSplitParam, BRepGraph_EdgeId &theSubA, BRepGraph_EdgeId &theSubB) |
| Split a single edge definition at a vertex and 3D-curve parameter. Creates two new EdgeDef slots, splits all PCurve nodes at the corresponding 2D parameter, and updates every wire that contained the original edge. | |
| bool | RemoveVertex (const BRepGraph_EdgeId theChildEdgeId, const BRepGraph_VertexRefId theVertexRefId) |
| Detach one exact edge-owned vertex ref from an edge definition. Supports only the persisted boundary slots (StartVertexRefId / EndVertexRefId). Supplemental direct-vertex usages are stored in BRepGraph_LayerTopoSupplement and are not removed through this API. | |
| BRepGraph_VertexRefId | ReplaceVertex (const BRepGraph_EdgeId theChildEdgeId, const BRepGraph_VertexRefId theOldVertexRefId, const BRepGraph_VertexId theNewChildVertexId) |
| Remap one edge-owned vertex reference to point at a different vertex definition, preserving the existing orientation and local location. Intended for boundary-vertex substitution without a full edge rebuild (e.g. stitching shared endpoints after a ShapeFix pass). | |
| BRepGraph_MutGuard< BRepGraphInc::EdgeDef > | Mut (const BRepGraph_EdgeId theEdge) |
| Return scoped mutable edge definition guard. | |
| void | Reverse (const BRepGraph_EdgeId theEdge) |
| Reverse the edge: swap StartVertexRefId and EndVertexRefId. Used by healing/sewing when a caller wants the edge's boundary order flipped. Does not alter the parametric range (callers needing reparametrization should follow up with SetParamRange). | |
| void | SetTolerance (const BRepGraph_EdgeId theEdge, double theTolerance) |
| Set the tolerance of an edge definition and fire immediate notification. | |
| void | SetTolerance (BRepGraph_MutGuard< BRepGraphInc::EdgeDef > &theMut, double theTolerance) |
| Set the tolerance of an edge definition inside a batched mutation scope. | |
| void | SetParamRange (const BRepGraph_EdgeId theEdge, const double theFirst, const double theLast) |
| Set the parametric range of an edge definition. | |
| void | SetParamRange (BRepGraph_MutGuard< BRepGraphInc::EdgeDef > &theMut, const double theFirst, const double theLast) |
| void | SetCurve (const BRepGraph_EdgeId theEdge, const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast) |
| Set the 3D curve on an edge. Creates an owned EdgeCurve3DRep record and an associated Curve3DRep for edge geometry access. | |
| void | ClearCurve (const BRepGraph_EdgeId theEdge) |
| Clear the 3D curve on an edge. Removes the owned use record binding. | |
| void | SetPersistentPolygon3D (const BRepGraph_EdgeId theEdge, const occ::handle< Poly_Polygon3D > &thePolygon) |
| Set the persistent 3D polygon on an edge. Creates an owned EdgePolygon3DRep record. | |
| void | ClearPersistentPolygon3D (const BRepGraph_EdgeId theEdge) |
| Clear the persistent 3D polygon on an edge. | |
| void | SetStartVertexRefId (const BRepGraph_EdgeId theEdge, const BRepGraph_VertexRefId theVertexRef) |
| Set the start vertex-ref id and rebind the vertex-to-edge relation. | |
| void | SetStartVertexRefId (BRepGraph_MutGuard< BRepGraphInc::EdgeDef > &theMut, const BRepGraph_VertexRefId theVertexRef) |
| void | SetEndVertexRefId (const BRepGraph_EdgeId theEdge, const BRepGraph_VertexRefId theVertexRef) |
| Set the end vertex-ref id and rebind the vertex-to-edge relation. | |
| void | SetEndVertexRefId (BRepGraph_MutGuard< BRepGraphInc::EdgeDef > &theMut, const BRepGraph_VertexRefId theVertexRef) |
Edge creation and editing operations.
|
nodiscard |
Add an edge definition to the graph.
| [in] | theStartVtx | typed start vertex definition identifier |
| [in] | theEndVtx | typed end vertex definition identifier |
| [in] | theCurve | 3D curve (may be null for degenerate edges) |
| [in] | theFirst | first curve parameter |
| [in] | theLast | last curve parameter |
| [in] | theTolerance | edge tolerance |
| void BRepGraph::EditorView::EdgeOps::ClearCurve | ( | const BRepGraph_EdgeId | theEdge | ) |
Clear the 3D curve on an edge. Removes the owned use record binding.
| [in] | theEdge | edge definition identifier |
| void BRepGraph::EditorView::EdgeOps::ClearPersistentPolygon3D | ( | const BRepGraph_EdgeId | theEdge | ) |
Clear the persistent 3D polygon on an edge.
| [in] | theEdge | edge definition identifier |
|
nodiscard |
Return scoped mutable edge definition guard.
|
nodiscard |
Detach one exact edge-owned vertex ref from an edge definition. Supports only the persisted boundary slots (StartVertexRefId / EndVertexRefId). Supplemental direct-vertex usages are stored in BRepGraph_LayerTopoSupplement and are not removed through this API.
| [in] | theChildEdgeId | edge definition identifier |
| [in] | theVertexRefId | exact edge-owned vertex reference identifier |
|
nodiscard |
Remap one edge-owned vertex reference to point at a different vertex definition, preserving the existing orientation and local location. Intended for boundary-vertex substitution without a full edge rebuild (e.g. stitching shared endpoints after a ShapeFix pass).
| [in] | theChildEdgeId | edge owning the vertex reference |
| [in] | theOldVertexRefId | exact boundary vertex reference to remap |
| [in] | theNewChildVertexId | replacement vertex definition |
| void BRepGraph::EditorView::EdgeOps::Reverse | ( | const BRepGraph_EdgeId | theEdge | ) |
Reverse the edge: swap StartVertexRefId and EndVertexRefId. Used by healing/sewing when a caller wants the edge's boundary order flipped. Does not alter the parametric range (callers needing reparametrization should follow up with SetParamRange).
| [in] | theEdge | edge definition identifier |
| void BRepGraph::EditorView::EdgeOps::SetCurve | ( | const BRepGraph_EdgeId | theEdge, |
| const occ::handle< Geom_Curve > & | theCurve, | ||
| const double | theFirst, | ||
| const double | theLast ) |
Set the 3D curve on an edge. Creates an owned EdgeCurve3DRep record and an associated Curve3DRep for edge geometry access.
| [in] | theEdge | edge definition identifier |
| [in] | theCurve | 3D curve geometry (must not be null) |
| [in] | theFirst | first curve parameter |
| [in] | theLast | last curve parameter |
| void BRepGraph::EditorView::EdgeOps::SetEndVertexRefId | ( | BRepGraph_MutGuard< BRepGraphInc::EdgeDef > & | theMut, |
| const BRepGraph_VertexRefId | theVertexRef ) |
| void BRepGraph::EditorView::EdgeOps::SetEndVertexRefId | ( | const BRepGraph_EdgeId | theEdge, |
| const BRepGraph_VertexRefId | theVertexRef ) |
Set the end vertex-ref id and rebind the vertex-to-edge relation.
| void BRepGraph::EditorView::EdgeOps::SetParamRange | ( | BRepGraph_MutGuard< BRepGraphInc::EdgeDef > & | theMut, |
| const double | theFirst, | ||
| const double | theLast ) |
| void BRepGraph::EditorView::EdgeOps::SetParamRange | ( | const BRepGraph_EdgeId | theEdge, |
| const double | theFirst, | ||
| const double | theLast ) |
Set the parametric range of an edge definition.
| void BRepGraph::EditorView::EdgeOps::SetPersistentPolygon3D | ( | const BRepGraph_EdgeId | theEdge, |
| const occ::handle< Poly_Polygon3D > & | thePolygon ) |
Set the persistent 3D polygon on an edge. Creates an owned EdgePolygon3DRep record.
| [in] | theEdge | edge definition identifier |
| [in] | thePolygon | 3D polygon (must not be null) |
| void BRepGraph::EditorView::EdgeOps::SetStartVertexRefId | ( | BRepGraph_MutGuard< BRepGraphInc::EdgeDef > & | theMut, |
| const BRepGraph_VertexRefId | theVertexRef ) |
| void BRepGraph::EditorView::EdgeOps::SetStartVertexRefId | ( | const BRepGraph_EdgeId | theEdge, |
| const BRepGraph_VertexRefId | theVertexRef ) |
Set the start vertex-ref id and rebind the vertex-to-edge relation.
| void BRepGraph::EditorView::EdgeOps::SetTolerance | ( | BRepGraph_MutGuard< BRepGraphInc::EdgeDef > & | theMut, |
| double | theTolerance ) |
Set the tolerance of an edge definition inside a batched mutation scope.
| [in] | theMut | active mutable edge guard |
| [in] | theTolerance | new tolerance value |
| void BRepGraph::EditorView::EdgeOps::SetTolerance | ( | const BRepGraph_EdgeId | theEdge, |
| double | theTolerance ) |
Set the tolerance of an edge definition and fire immediate notification.
| [in] | theEdge | typed edge definition identifier |
| [in] | theTolerance | new tolerance value |
| void BRepGraph::EditorView::EdgeOps::Split | ( | const BRepGraph_EdgeId | theEdgeEntity, |
| const BRepGraph_VertexId | theSplitVertex, | ||
| const double | theSplitParam, | ||
| BRepGraph_EdgeId & | theSubA, | ||
| BRepGraph_EdgeId & | theSubB ) |
Split a single edge definition at a vertex and 3D-curve parameter. Creates two new EdgeDef slots, splits all PCurve nodes at the corresponding 2D parameter, and updates every wire that contained the original edge.
| [in] | theEdgeEntity | edge to split (must not be degenerate) |
| [in] | theSplitVertex | vertex definition at the split point (already in graph) |
| [in] | theSplitParam | parameter on the 3D curve at the split point |
| [out] | theSubA | sub-edge: StartVertex -> SplitVertex |
| [out] | theSubB | sub-edge: SplitVertex -> EndVertex |