![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
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) |
Solid creation and editing operations.
|
nodiscard |
Add an empty solid definition to the graph.
| 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.
| [in] | theSolidEntity | typed solid definition identifier |
| [in] | theShellEntity | typed shell definition identifier |
| [in] | theOri | orientation of the shell in the solid |
|
nodiscard |
Batch-append multiple shells to a solid. Two-pass: validates all inputs first, then links all.
| [in] | theSolidEntity | typed solid definition identifier |
| [in] | theShellIds | shell definition identifiers to append |
| [in] | theOrientations | optional parity orientations (empty = all FORWARD) |
|
nodiscard |
Return scoped mutable solid definition guard.
|
nodiscard |
Return scoped mutable solid reference guard.
|
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.
| [in] | theChildSolidId | solid definition identifier |
| [in] | theShellRefId | exact solid-owned shell reference identifier |
|
nodiscard |
Batch-remove multiple shell refs from a solid definition. All-or-nothing: validates all inputs first, then removes all.
| [in] | theSolidId | solid definition identifier |
| [in] | theShellRefs | shell reference identifiers to remove |
| void BRepGraph::EditorView::SolidOps::SetRefChildSolidId | ( | BRepGraph_MutGuard< BRepGraphInc::SolidRef > & | theMut, |
| const BRepGraph_SolidId | theSolid ) |
| 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).
| void BRepGraph::EditorView::SolidOps::SetRefOrientation | ( | BRepGraph_MutGuard< BRepGraphInc::SolidRef > & | theMut, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation inside a batched mutation scope.
| void BRepGraph::EditorView::SolidOps::SetRefOrientation | ( | const BRepGraph_SolidRefId | theSolidRef, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a solid reference.