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

Shell creation and editing operations. More...

#include <BRepGraph_EditorView.hxx>

Public Member Functions

BRepGraph_ShellId Add ()
 Add an empty shell definition to the graph.
BRepGraph_FaceRefId Append (const BRepGraph_ShellId theShellEntity, const BRepGraph_FaceId theFaceEntity, const BRepGraphInc::ParityOrientation theOri=TopAbs_FORWARD)
 Append a face to a shell. Appends FaceRef and stores its FaceRefId in shell FaceRefIds.
NCollection_Array1< BRepGraph_FaceRefId > Append (const BRepGraph_ShellId theShellEntity, const NCollection_Array1< BRepGraph_FaceId > &theFaceIds, const NCollection_Array1< BRepGraphInc::ParityOrientation > &theOrientations=NCollection_Array1< BRepGraphInc::ParityOrientation >())
 Batch-append multiple faces to a shell. Two-pass: validates all inputs first, then links all.
bool RemoveFace (const BRepGraph_ShellId theChildShellId, const BRepGraph_FaceRefId theFaceRefId)
 Detach one exact face ref from a shell definition. Use BRepGraph_RefsFaceOfShell::CurrentId() when removing from a shell iterator. The method removes the exact FaceRef entry, erases it from the shell's ordered ref sequence, updates relation tables, and prunes the Face subtree when it has no other active usages.
bool RemoveFaces (const BRepGraph_ShellId theShellId, const NCollection_Array1< BRepGraph_FaceRefId > &theFaceRefs)
 Batch-remove multiple face refs from a shell definition. All-or-nothing: validates all inputs first, then removes all.
BRepGraph_MutGuard< BRepGraphInc::ShellDef > Mut (const BRepGraph_ShellId theShell)
 Return scoped mutable shell definition guard.
BRepGraph_MutGuard< BRepGraphInc::ShellRef > MutRef (const BRepGraph_ShellRefId theShellRef)
 Return scoped mutable shell reference guard.
void SetRefOrientation (const BRepGraph_ShellRefId theShellRef, const BRepGraphInc::ParityOrientation theOrientation)
 Set the orientation of a shell reference.
void SetRefOrientation (BRepGraph_MutGuard< BRepGraphInc::ShellRef > &theMut, const BRepGraphInc::ParityOrientation theOrientation)
 Set the orientation inside a batched mutation scope.
void SetRefChildShellId (const BRepGraph_ShellRefId theShellRef, const BRepGraph_ShellId theShell)
 Rewire a shell reference to a different shell def (rebinds ShellToSolid if parent is Solid).
void SetRefChildShellId (BRepGraph_MutGuard< BRepGraphInc::ShellRef > &theMut, const BRepGraph_ShellId theShell)

Detailed Description

Shell creation and editing operations.

Member Function Documentation

◆ Add()

BRepGraph_ShellId BRepGraph::EditorView::ShellOps::Add ( )
nodiscard

Add an empty shell definition to the graph.

Returns
typed shell definition identifier

◆ Append() [1/2]

BRepGraph_FaceRefId BRepGraph::EditorView::ShellOps::Append ( const BRepGraph_ShellId theShellEntity,
const BRepGraph_FaceId theFaceEntity,
const BRepGraphInc::ParityOrientation theOri = TopAbs_FORWARD )

Append a face to a shell. Appends FaceRef and stores its FaceRefId in shell FaceRefIds.

Parameters
[in]theShellEntitytyped shell definition identifier
[in]theFaceEntitytyped face definition identifier
[in]theOriorientation of the face in the shell
Returns
typed face reference identifier, or invalid if inputs are not active

◆ Append() [2/2]

NCollection_Array1< BRepGraph_FaceRefId > BRepGraph::EditorView::ShellOps::Append ( const BRepGraph_ShellId theShellEntity,
const NCollection_Array1< BRepGraph_FaceId > & theFaceIds,
const NCollection_Array1< BRepGraphInc::ParityOrientation > & theOrientations = NCollection_Array1< BRepGraphInc::ParityOrientation >() )
nodiscard

Batch-append multiple faces to a shell. Two-pass: validates all inputs first, then links all.

Parameters
[in]theShellEntitytyped shell definition identifier
[in]theFaceIdsface definition identifiers to append
[in]theOrientationsoptional parity orientations (empty = all FORWARD)
Returns
array of created face reference ids, empty on validation failure

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::ShellDef > BRepGraph::EditorView::ShellOps::Mut ( const BRepGraph_ShellId theShell)
nodiscard

Return scoped mutable shell definition guard.

◆ MutRef()

BRepGraph_MutGuard< BRepGraphInc::ShellRef > BRepGraph::EditorView::ShellOps::MutRef ( const BRepGraph_ShellRefId theShellRef)
nodiscard

Return scoped mutable shell reference guard.

◆ RemoveFace()

bool BRepGraph::EditorView::ShellOps::RemoveFace ( const BRepGraph_ShellId theChildShellId,
const BRepGraph_FaceRefId theFaceRefId )
nodiscard

Detach one exact face ref from a shell definition. Use BRepGraph_RefsFaceOfShell::CurrentId() when removing from a shell iterator. The method removes the exact FaceRef entry, erases it from the shell's ordered ref sequence, updates relation tables, and prunes the Face subtree when it has no other active usages.

Parameters
[in]theChildShellIdshell definition identifier
[in]theFaceRefIdexact shell-owned face reference identifier
Returns
true if the active shell-owned usage was removed

◆ RemoveFaces()

bool BRepGraph::EditorView::ShellOps::RemoveFaces ( const BRepGraph_ShellId theShellId,
const NCollection_Array1< BRepGraph_FaceRefId > & theFaceRefs )
nodiscard

Batch-remove multiple face refs from a shell definition. All-or-nothing: validates all inputs first, then removes all.

Parameters
[in]theShellIdshell definition identifier
[in]theFaceRefsface reference identifiers to remove
Returns
true if all refs were successfully removed

◆ SetRefChildShellId() [1/2]

void BRepGraph::EditorView::ShellOps::SetRefChildShellId ( BRepGraph_MutGuard< BRepGraphInc::ShellRef > & theMut,
const BRepGraph_ShellId theShell )

◆ SetRefChildShellId() [2/2]

void BRepGraph::EditorView::ShellOps::SetRefChildShellId ( const BRepGraph_ShellRefId theShellRef,
const BRepGraph_ShellId theShell )

Rewire a shell reference to a different shell def (rebinds ShellToSolid if parent is Solid).

◆ SetRefOrientation() [1/2]

void BRepGraph::EditorView::ShellOps::SetRefOrientation ( BRepGraph_MutGuard< BRepGraphInc::ShellRef > & theMut,
const BRepGraphInc::ParityOrientation theOrientation )

Set the orientation inside a batched mutation scope.

◆ SetRefOrientation() [2/2]

void BRepGraph::EditorView::ShellOps::SetRefOrientation ( const BRepGraph_ShellRefId theShellRef,
const BRepGraphInc::ParityOrientation theOrientation )

Set the orientation of a shell reference.


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