![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
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) |
Shell creation and editing operations.
|
nodiscard |
Add an empty shell definition to the graph.
| 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.
| [in] | theShellEntity | typed shell definition identifier |
| [in] | theFaceEntity | typed face definition identifier |
| [in] | theOri | orientation of the face in the shell |
|
nodiscard |
Batch-append multiple faces to a shell. Two-pass: validates all inputs first, then links all.
| [in] | theShellEntity | typed shell definition identifier |
| [in] | theFaceIds | face definition identifiers to append |
| [in] | theOrientations | optional parity orientations (empty = all FORWARD) |
|
nodiscard |
Return scoped mutable shell definition guard.
|
nodiscard |
Return scoped mutable shell reference guard.
|
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.
| [in] | theChildShellId | shell definition identifier |
| [in] | theFaceRefId | exact shell-owned face reference identifier |
|
nodiscard |
Batch-remove multiple face refs from a shell definition. All-or-nothing: validates all inputs first, then removes all.
| [in] | theShellId | shell definition identifier |
| [in] | theFaceRefs | face reference identifiers to remove |
| void BRepGraph::EditorView::ShellOps::SetRefChildShellId | ( | BRepGraph_MutGuard< BRepGraphInc::ShellRef > & | theMut, |
| const BRepGraph_ShellId | theShell ) |
| 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).
| void BRepGraph::EditorView::ShellOps::SetRefOrientation | ( | BRepGraph_MutGuard< BRepGraphInc::ShellRef > & | theMut, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation inside a batched mutation scope.
| void BRepGraph::EditorView::ShellOps::SetRefOrientation | ( | const BRepGraph_ShellRefId | theShellRef, |
| const BRepGraphInc::ParityOrientation | theOrientation ) |
Set the orientation of a shell reference.