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

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)

Detailed Description

Face creation and editing operations.

Member Function Documentation

◆ Add()

BRepGraph_FaceId BRepGraph::EditorView::FaceOps::Add ( const occ::handle< Geom_Surface > & theSurface,
const BRepGraph_WireId theOuterWire,
const NCollection_Array1< BRepGraph_WireId > & theInnerWires,
const double theTolerance )
nodiscard

Add a face definition to the graph.

Parameters
[in]theSurfacesurface geometry
[in]theOuterWiretyped outer wire definition identifier
[in]theInnerWirestyped inner wire definition identifiers
[in]theToleranceface tolerance
Returns
typed face definition identifier, or invalid if any referenced wire id is out of range or removed

◆ Append()

BRepGraph_WireRefId BRepGraph::EditorView::FaceOps::Append ( const BRepGraph_FaceId theFaceEntity,
const BRepGraph_WireId theWireEntity,
const BRepGraphInc::ParityOrientation theOri = TopAbs_FORWARD )
nodiscard

Append a wire usage to an existing face definition.

Parameters
[in]theFaceEntitytyped face definition identifier
[in]theWireEntitytyped wire definition identifier
[in]theOriorientation of the wire usage on the face
Returns
typed wire reference identifier, or invalid if inputs are not active

◆ ClearPersistentTriangulation()

void BRepGraph::EditorView::FaceOps::ClearPersistentTriangulation ( const BRepGraph_FaceId theFace)

Clear the persistent triangulation on a face.

Parameters
[in]theFaceface definition identifier

◆ ClearSurface()

void BRepGraph::EditorView::FaceOps::ClearSurface ( const BRepGraph_FaceId theFace)

Clear the surface on a face. Removes the owned use record binding.

Parameters
[in]theFaceface definition identifier

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::FaceDef > BRepGraph::EditorView::FaceOps::Mut ( const BRepGraph_FaceId theFace)
nodiscard

Return scoped mutable face definition guard.

◆ MutRef()

BRepGraph_MutGuard< BRepGraphInc::FaceRef > BRepGraph::EditorView::FaceOps::MutRef ( const BRepGraph_FaceRefId theFaceRef)
nodiscard

Return scoped mutable face reference guard.

◆ RemoveWire()

bool BRepGraph::EditorView::FaceOps::RemoveWire ( const BRepGraph_FaceId theFaceId,
const BRepGraph_WireRefId theWireRefId )
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.

Parameters
[in]theFaceIdface definition identifier
[in]theWireRefIdexact face-owned wire reference identifier
Returns
true if the active face-owned usage was removed

◆ SetPersistentTriangulation()

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.

Parameters
[in]theFaceface definition identifier
[in]theTriangulationtriangulation mesh (must not be null)

◆ SetRefFaceId() [1/2]

void BRepGraph::EditorView::FaceOps::SetRefFaceId ( BRepGraph_MutGuard< BRepGraphInc::FaceRef > & theMut,
const BRepGraph_FaceId theFace )

◆ SetRefFaceId() [2/2]

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).

◆ SetRefOrientation() [1/2]

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.

Parameters
[in]theMutactive mutable face reference guard
[in]theOrientationnew orientation value

◆ SetRefOrientation() [2/2]

void BRepGraph::EditorView::FaceOps::SetRefOrientation ( const BRepGraph_FaceRefId theFaceRef,
BRepGraphInc::ParityOrientation theOrientation )

Set the orientation of a face reference and fire immediate notification.

Parameters
[in]theFaceReftyped face reference identifier
[in]theOrientationnew orientation value

◆ SetSurface()

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.

Parameters
[in]theFaceface definition identifier
[in]theSurfacesurface geometry (must not be null)

◆ SetTolerance() [1/2]

void BRepGraph::EditorView::FaceOps::SetTolerance ( BRepGraph_MutGuard< BRepGraphInc::FaceDef > & theMut,
double theTolerance )

Set the tolerance of a face definition inside a batched mutation scope.

Parameters
[in]theMutactive mutable face guard
[in]theTolerancenew tolerance value

◆ SetTolerance() [2/2]

void BRepGraph::EditorView::FaceOps::SetTolerance ( const BRepGraph_FaceId theFace,
double theTolerance )

Set the tolerance of a face definition and fire immediate notification.

Parameters
[in]theFacetyped face definition identifier
[in]theTolerancenew tolerance value

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