Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph::EditorView::CoEdgeOps Class Reference

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)

Detailed Description

CoEdge and PCurve operations.

Member Function Documentation

◆ Add() [1/2]

BRepGraph_CoEdgeId BRepGraph::EditorView::CoEdgeOps::Add ( const BRepGraph_EdgeId theEdge,
const BRepGraphInc::ParityOrientation theOrientation )
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().

Parameters
[in]theEdgetyped edge definition identifier
[in]theOrientationorientation of the edge in the wire
Returns
typed coedge identifier, or invalid if the edge is invalid

◆ Add() [2/2]

BRepGraph_CoEdgeId BRepGraph::EditorView::CoEdgeOps::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 )
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().

Parameters
[in]theEdgeEntitytyped edge definition identifier
[in]theFaceEntitytyped face definition identifier
[in]theCurve2d2D curve geometry
[in]theFirstfirst curve parameter
[in]theLastlast curve parameter
[in]theEdgeOrientationedge orientation on the face
Returns
typed coedge identifier, or invalid if inputs are not active

◆ ClearPCurve()

void BRepGraph::EditorView::CoEdgeOps::ClearPCurve ( const BRepGraph_CoEdgeId theCoEdge)

Clear the PCurve on a coedge.

Parameters
[in]theCoEdgecoedge definition identifier

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > BRepGraph::EditorView::CoEdgeOps::Mut ( const BRepGraph_CoEdgeId theCoEdge)
nodiscard

Return scoped mutable coedge definition guard.

◆ ResetPCurveBinding() [1/2]

void BRepGraph::EditorView::CoEdgeOps::ResetPCurveBinding ( BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & theMut)

◆ ResetPCurveBinding() [2/2]

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.

◆ SetChildEdgeId() [1/2]

void BRepGraph::EditorView::CoEdgeOps::SetChildEdgeId ( BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & theMut,
const BRepGraph_EdgeId theEdge )

◆ SetChildEdgeId() [2/2]

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.

◆ SetFaceId() [1/2]

void BRepGraph::EditorView::CoEdgeOps::SetFaceId ( BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & theMut,
const BRepGraph_FaceId theFace )

◆ SetFaceId() [2/2]

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.

◆ SetOrientation() [1/2]

void BRepGraph::EditorView::CoEdgeOps::SetOrientation ( BRepGraph_MutGuard< BRepGraphInc::CoEdgeDef > & theMut,
const BRepGraphInc::ParityOrientation theOrientation )

◆ SetOrientation() [2/2]

void BRepGraph::EditorView::CoEdgeOps::SetOrientation ( const BRepGraph_CoEdgeId theCoEdge,
const BRepGraphInc::ParityOrientation theOrientation )

Set the orientation of a coedge definition.

◆ SetParamRange() [1/2]

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.

Parameters
[in]theMutactive mutable coedge guard
[in]theFirstnew first parameter value
[in]theLastnew last parameter value

◆ SetParamRange() [2/2]

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.

Parameters
[in]theCoEdgetyped coedge definition identifier
[in]theFirstnew first parameter value
[in]theLastnew last parameter value

◆ SetPCurve() [1/2]

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.

Parameters
[in]theCoEdgetyped coedge identifier to update
[in]theCurve2dnew 2D curve geometry, or null to clear

◆ SetPCurve() [2/2]

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.

Parameters
[in]theCoEdgecoedge definition identifier
[in]theCurve2d2D curve geometry (must not be null)
[in]theFirstfirst curve parameter
[in]theLastlast curve parameter

◆ SetPersistentPolygon2D()

void BRepGraph::EditorView::CoEdgeOps::SetPersistentPolygon2D ( const BRepGraph_CoEdgeId theCoEdge,
const occ::handle< Poly_Polygon2D > & thePolygon )

Set the persistent 2D polygon on a coedge.

Parameters
[in]theCoEdgecoedge definition identifier
[in]thePolygon2D polygon (must not be null)

◆ SetPersistentPolygonOnTri()

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.

Parameters
[in]theCoEdgecoedge definition identifier
[in]thePolygonpolygon-on-triangulation (must not be null)

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