![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Face creation and editing operations. More...
#include <BRepGraph_EditorView.hxx>
Public Member Functions | |
| BRepGraph_FaceId | Add (const occ::handle< Geom_Surface > &theSurface, const BRepGraph_WireId theOuterWire, const NCollection_Array1< BRepGraph_WireId > &theInnerWires, const double theTolerance) |
| Add a face definition to the graph. | |
| BRepGraph_WireRefId | Append (const BRepGraph_FaceId theFaceEntity, const BRepGraph_WireId theWireEntity, const BRepGraphInc::ParityOrientation theOri=TopAbs_FORWARD) |
| Append a wire usage to an existing face definition. | |
| bool | RemoveWire (const BRepGraph_FaceId theFaceId, const BRepGraph_WireRefId theWireRefId) |
| Detach one exact wire ref from a face definition. Use BRepGraph_RefsWireOfFace::CurrentId() when removing from a face iterator. The method removes the exact WireRef entry, erases it from the face's ordered ref sequence, updates relation tables, and prunes the Wire subtree when it has no other active usages. | |
| BRepGraph_MutGuard< BRepGraphInc::FaceDef > | Mut (const BRepGraph_FaceId theFace) |
| Return scoped mutable face definition guard. | |
| BRepGraph_MutGuard< BRepGraphInc::FaceRef > | MutRef (const BRepGraph_FaceRefId theFaceRef) |
| Return scoped mutable face reference guard. | |
| void | SetTolerance (const BRepGraph_FaceId theFace, double theTolerance) |
| Set the tolerance of a face definition and fire immediate notification. | |
| void | SetTolerance (BRepGraph_MutGuard< BRepGraphInc::FaceDef > &theMut, double theTolerance) |
| Set the tolerance of a face definition inside a batched mutation scope. | |
| void | SetSurface (const BRepGraph_FaceId theFace, const occ::handle< Geom_Surface > &theSurface) |
| Set the surface on a face. Creates an owned FaceSurfaceRep record and an associated SurfaceRep for face geometry access. | |
| void | ClearSurface (const BRepGraph_FaceId theFace) |
| Clear the surface on a face. Removes the owned use record binding. | |
| void | SetPersistentTriangulation (const BRepGraph_FaceId theFace, const occ::handle< Poly_Triangulation > &theTriangulation) |
| Set the persistent triangulation on a face. Creates an owned FaceTriangulationRep record. Also creates a TriangulationRep for backward compatibility. | |
| void | ClearPersistentTriangulation (const BRepGraph_FaceId theFace) |
| Clear the persistent triangulation on a face. | |
| void | SetRefOrientation (const BRepGraph_FaceRefId theFaceRef, BRepGraphInc::ParityOrientation theOrientation) |
| Set the orientation of a face reference and fire immediate notification. | |
| void | SetRefOrientation (BRepGraph_MutGuard< BRepGraphInc::FaceRef > &theMut, BRepGraphInc::ParityOrientation theOrientation) |
| Set the orientation of a face reference inside a batched mutation scope. | |
| void | SetRefFaceId (const BRepGraph_FaceRefId theFaceRef, const BRepGraph_FaceId theFace) |
| Rewire a face reference to a different face def (rebinds FaceToShells if parent is Shell). | |
| void | SetRefFaceId (BRepGraph_MutGuard< BRepGraphInc::FaceRef > &theMut, const BRepGraph_FaceId theFace) |
Face creation and editing operations.
|
nodiscard |
Add a face definition to the graph.
| [in] | theSurface | surface geometry |
| [in] | theOuterWire | typed outer wire definition identifier |
| [in] | theInnerWires | typed inner wire definition identifiers |
| [in] | theTolerance | face tolerance |
|
nodiscard |
Append a wire usage to an existing face definition.
| [in] | theFaceEntity | typed face definition identifier |
| [in] | theWireEntity | typed wire definition identifier |
| [in] | theOri | orientation of the wire usage on the face |
| void BRepGraph::EditorView::FaceOps::ClearPersistentTriangulation | ( | const BRepGraph_FaceId | theFace | ) |
Clear the persistent triangulation on a face.
| [in] | theFace | face definition identifier |
| void BRepGraph::EditorView::FaceOps::ClearSurface | ( | const BRepGraph_FaceId | theFace | ) |
Clear the surface on a face. Removes the owned use record binding.
| [in] | theFace | face definition identifier |
|
nodiscard |
Return scoped mutable face definition guard.
|
nodiscard |
Return scoped mutable face reference guard.
|
nodiscard |
Detach one exact wire ref from a face definition. Use BRepGraph_RefsWireOfFace::CurrentId() when removing from a face iterator. The method removes the exact WireRef entry, erases it from the face's ordered ref sequence, updates relation tables, and prunes the Wire subtree when it has no other active usages.
| [in] | theFaceId | face definition identifier |
| [in] | theWireRefId | exact face-owned wire reference identifier |
| void BRepGraph::EditorView::FaceOps::SetPersistentTriangulation | ( | const BRepGraph_FaceId | theFace, |
| const occ::handle< Poly_Triangulation > & | theTriangulation ) |
Set the persistent triangulation on a face. Creates an owned FaceTriangulationRep record. Also creates a TriangulationRep for backward compatibility.
| [in] | theFace | face definition identifier |
| [in] | theTriangulation | triangulation mesh (must not be null) |
| void BRepGraph::EditorView::FaceOps::SetRefFaceId | ( | BRepGraph_MutGuard< BRepGraphInc::FaceRef > & | theMut, |
| const BRepGraph_FaceId | theFace ) |
| void BRepGraph::EditorView::FaceOps::SetRefFaceId | ( | const BRepGraph_FaceRefId | theFaceRef, |
| const BRepGraph_FaceId | theFace ) |
Rewire a face reference to a different face def (rebinds FaceToShells if parent is Shell).
| void BRepGraph::EditorView::FaceOps::SetRefOrientation | ( | BRepGraph_MutGuard< BRepGraphInc::FaceRef > & | theMut, |
| BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a face reference inside a batched mutation scope.
| [in] | theMut | active mutable face reference guard |
| [in] | theOrientation | new orientation value |
| void BRepGraph::EditorView::FaceOps::SetRefOrientation | ( | const BRepGraph_FaceRefId | theFaceRef, |
| BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a face reference and fire immediate notification.
| [in] | theFaceRef | typed face reference identifier |
| [in] | theOrientation | new orientation value |
| void BRepGraph::EditorView::FaceOps::SetSurface | ( | const BRepGraph_FaceId | theFace, |
| const occ::handle< Geom_Surface > & | theSurface ) |
Set the surface on a face. Creates an owned FaceSurfaceRep record and an associated SurfaceRep for face geometry access.
| [in] | theFace | face definition identifier |
| [in] | theSurface | surface geometry (must not be null) |
| void BRepGraph::EditorView::FaceOps::SetTolerance | ( | BRepGraph_MutGuard< BRepGraphInc::FaceDef > & | theMut, |
| double | theTolerance ) |
Set the tolerance of a face definition inside a batched mutation scope.
| [in] | theMut | active mutable face guard |
| [in] | theTolerance | new tolerance value |
| void BRepGraph::EditorView::FaceOps::SetTolerance | ( | const BRepGraph_FaceId | theFace, |
| double | theTolerance ) |
Set the tolerance of a face definition and fire immediate notification.
| [in] | theFace | typed face definition identifier |
| [in] | theTolerance | new tolerance value |