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

Solid creation and editing operations. More...

#include <BRepGraph_EditorView.hxx>

Public Member Functions

BRepGraph_SolidId Add ()
 Add an empty solid definition to the graph.
BRepGraph_ShellRefId Append (const BRepGraph_SolidId theSolidEntity, const BRepGraph_ShellId theShellEntity, const BRepGraphInc::ParityOrientation theOri=TopAbs_FORWARD)
 Append a shell to a solid. Appends ShellRef and stores its ShellRefId in solid ShellRefIds.
NCollection_Array1< BRepGraph_ShellRefId > Append (const BRepGraph_SolidId theSolidEntity, const NCollection_Array1< BRepGraph_ShellId > &theShellIds, const NCollection_Array1< BRepGraphInc::ParityOrientation > &theOrientations=NCollection_Array1< BRepGraphInc::ParityOrientation >())
 Batch-append multiple shells to a solid. Two-pass: validates all inputs first, then links all.
bool RemoveShell (const BRepGraph_SolidId theChildSolidId, const BRepGraph_ShellRefId theShellRefId)
 Detach one exact shell ref from a solid definition. Use BRepGraph_RefsShellOfSolid::CurrentId() when removing from a solid iterator. The method removes the exact ShellRef entry, erases it from the solid's ordered ref sequence, updates relation tables, and prunes the Shell subtree when it has no other active usages.
bool RemoveShells (const BRepGraph_SolidId theSolidId, const NCollection_Array1< BRepGraph_ShellRefId > &theShellRefs)
 Batch-remove multiple shell refs from a solid definition. All-or-nothing: validates all inputs first, then removes all.
BRepGraph_MutGuard< BRepGraphInc::SolidDef > Mut (const BRepGraph_SolidId theSolid)
 Return scoped mutable solid definition guard.
BRepGraph_MutGuard< BRepGraphInc::SolidRef > MutRef (const BRepGraph_SolidRefId theSolidRef)
 Return scoped mutable solid reference guard.
void SetRefOrientation (const BRepGraph_SolidRefId theSolidRef, const BRepGraphInc::ParityOrientation theOrientation)
 Set the orientation of a solid reference.
void SetRefOrientation (BRepGraph_MutGuard< BRepGraphInc::SolidRef > &theMut, const BRepGraphInc::ParityOrientation theOrientation)
 Set the orientation inside a batched mutation scope.
void SetRefChildSolidId (const BRepGraph_SolidRefId theSolidRef, const BRepGraph_SolidId theSolid)
 Rewire a solid reference to a different solid def (rebinds SolidToCompSolid if parent is CompSolid).
void SetRefChildSolidId (BRepGraph_MutGuard< BRepGraphInc::SolidRef > &theMut, const BRepGraph_SolidId theSolid)

Detailed Description

Solid creation and editing operations.

Member Function Documentation

◆ Add()

BRepGraph_SolidId BRepGraph::EditorView::SolidOps::Add ( )
nodiscard

Add an empty solid definition to the graph.

Returns
typed solid definition identifier

◆ Append() [1/2]

BRepGraph_ShellRefId BRepGraph::EditorView::SolidOps::Append ( const BRepGraph_SolidId theSolidEntity,
const BRepGraph_ShellId theShellEntity,
const BRepGraphInc::ParityOrientation theOri = TopAbs_FORWARD )

Append a shell to a solid. Appends ShellRef and stores its ShellRefId in solid ShellRefIds.

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

◆ Append() [2/2]

NCollection_Array1< BRepGraph_ShellRefId > BRepGraph::EditorView::SolidOps::Append ( const BRepGraph_SolidId theSolidEntity,
const NCollection_Array1< BRepGraph_ShellId > & theShellIds,
const NCollection_Array1< BRepGraphInc::ParityOrientation > & theOrientations = NCollection_Array1< BRepGraphInc::ParityOrientation >() )
nodiscard

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

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

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::SolidDef > BRepGraph::EditorView::SolidOps::Mut ( const BRepGraph_SolidId theSolid)
nodiscard

Return scoped mutable solid definition guard.

◆ MutRef()

BRepGraph_MutGuard< BRepGraphInc::SolidRef > BRepGraph::EditorView::SolidOps::MutRef ( const BRepGraph_SolidRefId theSolidRef)
nodiscard

Return scoped mutable solid reference guard.

◆ RemoveShell()

bool BRepGraph::EditorView::SolidOps::RemoveShell ( const BRepGraph_SolidId theChildSolidId,
const BRepGraph_ShellRefId theShellRefId )
nodiscard

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

Parameters
[in]theChildSolidIdsolid definition identifier
[in]theShellRefIdexact solid-owned shell reference identifier
Returns
true if the active solid-owned usage was removed

◆ RemoveShells()

bool BRepGraph::EditorView::SolidOps::RemoveShells ( const BRepGraph_SolidId theSolidId,
const NCollection_Array1< BRepGraph_ShellRefId > & theShellRefs )
nodiscard

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

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

◆ SetRefChildSolidId() [1/2]

void BRepGraph::EditorView::SolidOps::SetRefChildSolidId ( BRepGraph_MutGuard< BRepGraphInc::SolidRef > & theMut,
const BRepGraph_SolidId theSolid )

◆ SetRefChildSolidId() [2/2]

void BRepGraph::EditorView::SolidOps::SetRefChildSolidId ( const BRepGraph_SolidRefId theSolidRef,
const BRepGraph_SolidId theSolid )

Rewire a solid reference to a different solid def (rebinds SolidToCompSolid if parent is CompSolid).

◆ SetRefOrientation() [1/2]

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

Set the orientation inside a batched mutation scope.

◆ SetRefOrientation() [2/2]

void BRepGraph::EditorView::SolidOps::SetRefOrientation ( const BRepGraph_SolidRefId theSolidRef,
const BRepGraphInc::ParityOrientation theOrientation )

Set the orientation of a solid reference.


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