![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
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(). | |
CompSolid creation and editing operations.
|
nodiscard |
Add a compsolid entity with ordered solid usages.
| [in] | theSolidEntities | typed child solid identifiers |
|
nodiscard |
Append a single solid to an existing compsolid definition.
| [in] | theCompSolidEntity | typed compsolid definition identifier |
| [in] | theSolidEntity | typed solid definition identifier |
| [in] | theOri | orientation of the solid in the compsolid |
|
nodiscard |
Batch-append multiple solids to an existing compsolid definition. Two-pass: validates all inputs first, then links all.
| [in] | theCompSolidEntity | typed compsolid definition identifier |
| [in] | theSolidIds | solid definition identifiers to append |
| [in] | theOrientations | optional parity orientations (empty = all FORWARD) |
|
nodiscard |
Return scoped mutable comp-solid definition guard.
|
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.
| [in] | theCompChildSolidId | compsolid definition identifier |
| [in] | theSolidRefId | exact compsolid-owned solid reference identifier |
|
nodiscard |
Batch-remove multiple solid refs from a compsolid definition. All-or-nothing: validates all inputs first, then removes all.
| [in] | theCompSolidId | compsolid definition identifier |
| [in] | theSolidRefs | solid reference identifiers to remove |
| 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().
| [in] | theSolidRef | typed solid reference identifier |
| [in] | theNewSolid | new solid definition identifier |