![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
CoEdge and PCurve operations. More...
#include <BRepGraph_EditorView.hxx>
Public Member Functions | |
| void | SetPCurve (const BRepGraph_CoEdgeId theCoEdge, const occ::handle< Geom2d_Curve > &theCurve2d) |
| Assign or clear the PCurve bound to an existing coedge. Creates a new Curve2DRep for non-null curves and stores its id on the coedge. Pass a null handle to clear the stored PCurve binding. | |
| BRepGraph_CoEdgeId | Add (const BRepGraph_EdgeId theEdge, const BRepGraphInc::ParityOrientation theOrientation) |
| Create a new CoEdge entity linking an edge with an orientation. The CoEdge is free-floating (no parent wire); bind it to a wire via WireOps::Add(). | |
| BRepGraph_CoEdgeId | Add (const BRepGraph_EdgeId theEdgeEntity, const BRepGraph_FaceId theFaceEntity, const occ::handle< Geom2d_Curve > &theCurve2d, const double theFirst, const double theLast, const BRepGraphInc::ParityOrientation theEdgeOrientation=TopAbs_FORWARD) |
| Create a new CoEdge entity with a PCurve for a given edge-face pair. Creates a new CoEdge entity with Curve2DRep and updates relation tables. This always appends a new CoEdge entry for the edge-face pair; callers should avoid duplicate creation unless multiple bindings are intentional for the modeled topology. For editing an already identified CoEdge inside a larger mutation sequence, use CoEdges().SetPCurve(). | |
| BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > | Mut (const BRepGraph_CoEdgeId theCoEdge) |
| Return scoped mutable coedge definition guard. | |
| void | SetParamRange (const BRepGraph_CoEdgeId theCoEdge, double theFirst, double theLast) |
| Set the parametric range of a coedge definition and fire immediate notification. | |
| void | SetParamRange (BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > &theMut, double theFirst, double theLast) |
| Set the parametric range of a coedge definition inside a batched mutation scope. | |
| void | SetOrientation (const BRepGraph_CoEdgeId theCoEdge, const BRepGraphInc::ParityOrientation theOrientation) |
| Set the orientation of a coedge definition. | |
| void | SetOrientation (BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > &theMut, const BRepGraphInc::ParityOrientation theOrientation) |
| void | SetPCurve (const BRepGraph_CoEdgeId theCoEdge, const occ::handle< Geom2d_Curve > &theCurve2d, const double theFirst, const double theLast) |
| Set the PCurve on a coedge. Creates an owned CoEdgeCurve2DRep record. | |
| void | ClearPCurve (const BRepGraph_CoEdgeId theCoEdge) |
| Clear the PCurve on a coedge. | |
| void | SetPersistentPolygon2D (const BRepGraph_CoEdgeId theCoEdge, const occ::handle< Poly_Polygon2D > &thePolygon) |
| Set the persistent 2D polygon on a coedge. | |
| void | SetPersistentPolygonOnTri (const BRepGraph_CoEdgeId theCoEdge, const occ::handle< Poly_PolygonOnTriangulation > &thePolygon) |
| Set the persistent polygon-on-triangulation on a coedge. The triangulation is resolved via CoEdgeDef.FaceId -> FaceDef.TriangulationRepId. | |
| void | ResetPCurveBinding (const BRepGraph_CoEdgeId theCoEdge) |
| Drop face-bound parametric representation (PCurve, param range, continuity, UVs) while keeping structural links - used when the owning face is removed. | |
| void | ResetPCurveBinding (BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > &theMut) |
| void | SetChildEdgeId (const BRepGraph_CoEdgeId theCoEdge, const BRepGraph_EdgeId theEdge) |
| Set the seam-pair id linking two coedges of a seam edge (invalid breaks the link). | |
| void | SetChildEdgeId (BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > &theMut, const BRepGraph_EdgeId theEdge) |
| void | SetFaceId (const BRepGraph_CoEdgeId theCoEdge, const BRepGraph_FaceId theFace) |
| Rewire a coedge to a different owning face and rebind edge-to-face relations. | |
| void | SetFaceId (BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > &theMut, const BRepGraph_FaceId theFace) |
CoEdge and PCurve operations.
|
nodiscard |
Create a new CoEdge entity linking an edge with an orientation. The CoEdge is free-floating (no parent wire); bind it to a wire via WireOps::Add().
| [in] | theEdge | typed edge definition identifier |
| [in] | theOrientation | orientation of the edge in the wire |
|
nodiscard |
Create a new CoEdge entity with a PCurve for a given edge-face pair. Creates a new CoEdge entity with Curve2DRep and updates relation tables. This always appends a new CoEdge entry for the edge-face pair; callers should avoid duplicate creation unless multiple bindings are intentional for the modeled topology. For editing an already identified CoEdge inside a larger mutation sequence, use CoEdges().SetPCurve().
| [in] | theEdgeEntity | typed edge definition identifier |
| [in] | theFaceEntity | typed face definition identifier |
| [in] | theCurve2d | 2D curve geometry |
| [in] | theFirst | first curve parameter |
| [in] | theLast | last curve parameter |
| [in] | theEdgeOrientation | edge orientation on the face |
| void BRepGraph::EditorView::CoEdgeOps::ClearPCurve | ( | const BRepGraph_CoEdgeId | theCoEdge | ) |
Clear the PCurve on a coedge.
| [in] | theCoEdge | coedge definition identifier |
|
nodiscard |
Return scoped mutable coedge definition guard.
| void BRepGraph::EditorView::CoEdgeOps::ResetPCurveBinding | ( | BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & | theMut | ) |
| void BRepGraph::EditorView::CoEdgeOps::ResetPCurveBinding | ( | const BRepGraph_CoEdgeId | theCoEdge | ) |
Drop face-bound parametric representation (PCurve, param range, continuity, UVs) while keeping structural links - used when the owning face is removed.
| void BRepGraph::EditorView::CoEdgeOps::SetChildEdgeId | ( | BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & | theMut, |
| const BRepGraph_EdgeId | theEdge ) |
| void BRepGraph::EditorView::CoEdgeOps::SetChildEdgeId | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const BRepGraph_EdgeId | theEdge ) |
Set the seam-pair id linking two coedges of a seam edge (invalid breaks the link).
Rewire a coedge to a different child edge and rebind edge parent/use relations.
| void BRepGraph::EditorView::CoEdgeOps::SetFaceId | ( | BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & | theMut, |
| const BRepGraph_FaceId | theFace ) |
| void BRepGraph::EditorView::CoEdgeOps::SetFaceId | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const BRepGraph_FaceId | theFace ) |
Rewire a coedge to a different owning face and rebind edge-to-face relations.
| void BRepGraph::EditorView::CoEdgeOps::SetOrientation | ( | BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & | theMut, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
| void BRepGraph::EditorView::CoEdgeOps::SetOrientation | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a coedge definition.
| void BRepGraph::EditorView::CoEdgeOps::SetParamRange | ( | BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & | theMut, |
| double | theFirst, | ||
| double | theLast ) |
Set the parametric range of a coedge definition inside a batched mutation scope.
| [in] | theMut | active mutable coedge guard |
| [in] | theFirst | new first parameter value |
| [in] | theLast | new last parameter value |
| void BRepGraph::EditorView::CoEdgeOps::SetParamRange | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| double | theFirst, | ||
| double | theLast ) |
Set the parametric range of a coedge definition and fire immediate notification.
| [in] | theCoEdge | typed coedge definition identifier |
| [in] | theFirst | new first parameter value |
| [in] | theLast | new last parameter value |
| void BRepGraph::EditorView::CoEdgeOps::SetPCurve | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const occ::handle< Geom2d_Curve > & | theCurve2d ) |
Assign or clear the PCurve bound to an existing coedge. Creates a new Curve2DRep for non-null curves and stores its id on the coedge. Pass a null handle to clear the stored PCurve binding.
| [in] | theCoEdge | typed coedge identifier to update |
| [in] | theCurve2d | new 2D curve geometry, or null to clear |
| void BRepGraph::EditorView::CoEdgeOps::SetPCurve | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const occ::handle< Geom2d_Curve > & | theCurve2d, | ||
| const double | theFirst, | ||
| const double | theLast ) |
Set the PCurve on a coedge. Creates an owned CoEdgeCurve2DRep record.
| [in] | theCoEdge | coedge definition identifier |
| [in] | theCurve2d | 2D curve geometry (must not be null) |
| [in] | theFirst | first curve parameter |
| [in] | theLast | last curve parameter |
| void BRepGraph::EditorView::CoEdgeOps::SetPersistentPolygon2D | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const occ::handle< Poly_Polygon2D > & | thePolygon ) |
Set the persistent 2D polygon on a coedge.
| [in] | theCoEdge | coedge definition identifier |
| [in] | thePolygon | 2D polygon (must not be null) |
| void BRepGraph::EditorView::CoEdgeOps::SetPersistentPolygonOnTri | ( | const BRepGraph_CoEdgeId | theCoEdge, |
| const occ::handle< Poly_PolygonOnTriangulation > & | thePolygon ) |
Set the persistent polygon-on-triangulation on a coedge. The triangulation is resolved via CoEdgeDef.FaceId -> FaceDef.TriangulationRepId.
| [in] | theCoEdge | coedge definition identifier |
| [in] | thePolygon | polygon-on-triangulation (must not be null) |