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

CompSolid creation and editing operations. More...

#include <BRepGraph_EditorView.hxx>

Public Member Functions

BRepGraph_CompSolidId Add (const NCollection_Array1< BRepGraph_SolidId > &theSolidEntities)
 Add a compsolid entity with ordered solid usages.
BRepGraph_SolidRefId Append (const BRepGraph_CompSolidId theCompSolidEntity, const BRepGraph_SolidId theSolidEntity, const BRepGraphInc::ParityOrientation theOri=TopAbs_FORWARD)
 Append a single solid to an existing compsolid definition.
NCollection_Array1< BRepGraph_SolidRefId > Append (const BRepGraph_CompSolidId theCompSolidEntity, const NCollection_Array1< BRepGraph_SolidId > &theSolidIds, const NCollection_Array1< BRepGraphInc::ParityOrientation > &theOrientations=NCollection_Array1< BRepGraphInc::ParityOrientation >())
 Batch-append multiple solids to an existing compsolid definition. Two-pass: validates all inputs first, then links all.
bool RemoveSolid (const BRepGraph_CompSolidId theCompChildSolidId, const BRepGraph_SolidRefId theSolidRefId)
 Detach one exact solid ref from a compsolid definition. Use BRepGraph_RefsSolidOfCompSolid::CurrentId() when removing from a compsolid iterator. The method removes the exact SolidRef entry, erases it from the compsolid's ordered ref sequence, updates relation tables, and prunes the Solid subtree when it has no other active usages.
bool RemoveSolids (const BRepGraph_CompSolidId theCompSolidId, const NCollection_Array1< BRepGraph_SolidRefId > &theSolidRefs)
 Batch-remove multiple solid refs from a compsolid definition. All-or-nothing: validates all inputs first, then removes all.
BRepGraph_MutGuard< BRepGraphInc::CompSolidDef > Mut (const BRepGraph_CompSolidId theCompSolid)
 Return scoped mutable comp-solid definition guard.
void ReplaceSolid (const BRepGraph_SolidRefId theSolidRef, const BRepGraph_SolidId theNewSolid)
 Replace the solid of an existing solid reference in a compsolid. Delegates to Solids().SetRefChildSolidId().

Detailed Description

CompSolid creation and editing operations.

Member Function Documentation

◆ Add()

BRepGraph_CompSolidId BRepGraph::EditorView::CompSolidOps::Add ( const NCollection_Array1< BRepGraph_SolidId > & theSolidEntities)
nodiscard

Add a compsolid entity with ordered solid usages.

Parameters
[in]theSolidEntitiestyped child solid identifiers
Returns
typed compsolid definition identifier

◆ Append() [1/2]

BRepGraph_SolidRefId BRepGraph::EditorView::CompSolidOps::Append ( const BRepGraph_CompSolidId theCompSolidEntity,
const BRepGraph_SolidId theSolidEntity,
const BRepGraphInc::ParityOrientation theOri = TopAbs_FORWARD )
nodiscard

Append a single solid to an existing compsolid definition.

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

◆ Append() [2/2]

NCollection_Array1< BRepGraph_SolidRefId > BRepGraph::EditorView::CompSolidOps::Append ( const BRepGraph_CompSolidId theCompSolidEntity,
const NCollection_Array1< BRepGraph_SolidId > & theSolidIds,
const NCollection_Array1< BRepGraphInc::ParityOrientation > & theOrientations = NCollection_Array1< BRepGraphInc::ParityOrientation >() )
nodiscard

Batch-append multiple solids to an existing compsolid definition. Two-pass: validates all inputs first, then links all.

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

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::CompSolidDef > BRepGraph::EditorView::CompSolidOps::Mut ( const BRepGraph_CompSolidId theCompSolid)
nodiscard

Return scoped mutable comp-solid definition guard.

◆ RemoveSolid()

bool BRepGraph::EditorView::CompSolidOps::RemoveSolid ( const BRepGraph_CompSolidId theCompChildSolidId,
const BRepGraph_SolidRefId theSolidRefId )
nodiscard

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

Parameters
[in]theCompChildSolidIdcompsolid definition identifier
[in]theSolidRefIdexact compsolid-owned solid reference identifier
Returns
true if the active compsolid-owned usage was removed

◆ RemoveSolids()

bool BRepGraph::EditorView::CompSolidOps::RemoveSolids ( const BRepGraph_CompSolidId theCompSolidId,
const NCollection_Array1< BRepGraph_SolidRefId > & theSolidRefs )
nodiscard

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

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

◆ ReplaceSolid()

void BRepGraph::EditorView::CompSolidOps::ReplaceSolid ( const BRepGraph_SolidRefId theSolidRef,
const BRepGraph_SolidId theNewSolid )

Replace the solid of an existing solid reference in a compsolid. Delegates to Solids().SetRefChildSolidId().

Parameters
[in]theSolidReftyped solid reference identifier
[in]theNewSolidnew solid definition identifier

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