BRepGraph (page 2 of 2)
OCCT package BRepGraph: BRepGraph, BRepGraph_Cache, BRepGraph_CacheDerivedState, BRepGraph_CacheIterator, and 179 more bound classes.
BRepGraph_RefsChildOfCompound
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsChildOfCompoundParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsEdgesOfVertex
Constructors(1)
- constructor(theGraph: BRepGraph, theParents: BRepGraph_EdgeId[], theChild: BRepGraph_VertexId): BRepGraph_RefsEdgesOfVertexParameters (3)
theGraphtheParentstheChild
Instance methods(7)
BRepGraph_RefsFaceOfShell
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsFaceOfShellParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsIterator_ChildOfCompoundTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_CompoundId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_CompoundId): BRepGraph_ChildRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_ChildRefId): BRepGraphInc_ChildRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_ChildRef): BRepGraph_NodeIdParameters (2)
argNo0theRef
BRepGraph_RefsIterator_CoEdgeOfWireTraits
Constructors(1)
Static methods(3)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_WireId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_WireId): BRepGraph_CoEdgeId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_CoEdgeId): BRepGraphInc_CoEdgeDefParameters (2)
theGraphtheRefId
BRepGraph_RefsIterator_FaceOfShellTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_ShellId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_ShellId): BRepGraph_FaceRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_FaceRefId): BRepGraphInc_FaceRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_FaceRef): BRepGraph_FaceIdParameters (2)
argNo0theRef
BRepGraph_RefsIterator_OccurrenceOfProductTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_ProductId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_ProductId): BRepGraph_OccurrenceRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_OccurrenceRefId): BRepGraphInc_OccurrenceRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_OccurrenceRef): BRepGraph_OccurrenceIdParameters (2)
argNo0theRef
BRepGraph_RefsIterator_RefsVertexOfEdge
Constructors(1)
- constructor(theGraph: BRepGraph, theEdgeId: BRepGraph_EdgeId): BRepGraph_RefsIterator_RefsVertexOfEdgeParameters (2)
theGraphtheEdgeId
Instance methods(5)
BRepGraph_RefsIterator_ShellOfSolidTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_SolidId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_SolidId): BRepGraph_ShellRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_ShellRefId): BRepGraphInc_ShellRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_ShellRef): BRepGraph_ShellIdParameters (2)
argNo0theRef
BRepGraph_RefsIterator_SolidOfCompSolidTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_CompSolidId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_CompSolidId): BRepGraph_SolidRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_SolidRefId): BRepGraphInc_SolidRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_SolidRef): BRepGraph_SolidIdParameters (2)
argNo0theRef
BRepGraph_RefsIterator_WireOfFaceTraits
Constructors(1)
Static methods(4)
- IsParentValid(theGraph: BRepGraph, theParent: BRepGraph_FaceId): booleanParameters (2)
theGraphtheParent
- RefIds(theGraph: BRepGraph, theParent: BRepGraph_FaceId): BRepGraph_WireRefId[]Parameters (2)
theGraphtheParent
- Ref(theGraph: BRepGraph, theRefId: BRepGraph_WireRefId): BRepGraphInc_WireRefParameters (2)
theGraphtheRefId
- ChildIdOf(argNo0: BRepGraph, theRef: BRepGraphInc_WireRef): BRepGraph_WireIdParameters (2)
argNo0theRef
BRepGraph_RefsOccurrenceOfProduct
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsOccurrenceOfProductParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsShellOfSolid
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsShellOfSolidParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsShellsOfFace
Constructors(2)
- constructor(theGraph: BRepGraph, theRefs: BRepGraph_FaceRefId[]): BRepGraph_RefsShellsOfFaceParameters (2)
theGraphtheRefs
- constructor(theGraph: BRepGraph, theRefs: BRepGraph_FaceRefId[], theStartIndex: number): BRepGraph_RefsShellsOfFaceParameters (3)
theGraphtheRefstheStartIndex
Instance methods(9)
BRepGraph_RefsSolidOfCompSolid
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsSolidOfCompSolidParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsSolidsOfShell
Constructors(2)
- constructor(theGraph: BRepGraph, theRefs: BRepGraph_ShellRefId[]): BRepGraph_RefsSolidsOfShellParameters (2)
theGraphtheRefs
- constructor(theGraph: BRepGraph, theRefs: BRepGraph_ShellRefId[], theStartIndex: number): BRepGraph_RefsSolidsOfShellParameters (3)
theGraphtheRefstheStartIndex
Instance methods(9)
BRepGraph_RefsView
Instance methods(8)
BRepGraph_RefsView_ChildOps
Instance methods(7)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_ChildRefId): BRepGraphInc_ChildRefParameters (1)
theRefId
- IdsOf(theCompound: BRepGraph_CompoundId): BRepGraph_ChildRefId[]Parameters (1)
theCompound
- IdsReferencing(theChild: BRepGraph_NodeId): BRepGraph_ChildRefId[]Parameters (1)
theChild
BRepGraph_RefsView_FaceOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_FaceRefId): BRepGraphInc_FaceRefParameters (1)
theRefId
- IdsOf(theShell: BRepGraph_ShellId): BRepGraph_FaceRefId[]Parameters (1)
theShell
BRepGraph_RefsView_GenOps
Instance methods(8)
- Nb(theKind: BRepGraph_RefId_Kind): numberParameters (1)
theKind
- IsValid(theRef: BRepGraph_RefId): booleanParameters (1)
theRef
- IsActive(theRef: BRepGraph_RefId): booleanParameters (1)
theRef
- IsRemoved(theRef: BRepGraph_RefId): booleanParameters (1)
theRef
- RefAtStep(theParent: BRepGraph_NodeId, theStep: number): BRepGraph_RefIdParameters (2)
theParenttheStep
- ChildNode(theRef: BRepGraph_RefId): BRepGraph_NodeIdParameters (1)
theRef
- LocalLocation(theRef: BRepGraph_RefId): TopLoc_LocationParameters (1)
theRef
- Orientation(theRef: BRepGraph_RefId): TopAbs_OrientationParameters (1)
theRef
BRepGraph_RefsView_OccurrenceOps
Instance methods(7)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_OccurrenceRefId): BRepGraphInc_OccurrenceRefParameters (1)
theRefId
- IdsOf(theProduct: BRepGraph_ProductId): BRepGraph_OccurrenceRefId[]Parameters (1)
theProduct
- IdsReferencing(theChild: BRepGraph_NodeId): BRepGraph_OccurrenceRefId[]Parameters (1)
theChild
BRepGraph_RefsView_ShellOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_ShellRefId): BRepGraphInc_ShellRefParameters (1)
theRefId
- IdsOf(theSolid: BRepGraph_SolidId): BRepGraph_ShellRefId[]Parameters (1)
theSolid
BRepGraph_RefsView_SolidOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_SolidRefId): BRepGraphInc_SolidRefParameters (1)
theRefId
- IdsOf(theCompSolid: BRepGraph_CompSolidId): BRepGraph_SolidRefId[]Parameters (1)
theCompSolid
BRepGraph_RefsView_VertexOps
Instance methods(5)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_VertexRefId): BRepGraphInc_VertexRefParameters (1)
theRefId
BRepGraph_RefsView_WireOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Entry(theRefId: BRepGraph_WireRefId): BRepGraphInc_WireRefParameters (1)
theRefId
- IdsOf(theFace: BRepGraph_FaceId): BRepGraph_WireRefId[]Parameters (1)
theFace
BRepGraph_RefsWireOfFace
Constructors(1)
- constructor(theGraph: BRepGraph, theParent: unknown): BRepGraph_RefsWireOfFaceParameters (2)
theGraphtheParent
Instance methods(5)
BRepGraph_RefsWiresOfCoEdge
Constructors(1)
- constructor(theGraph: BRepGraph, theParents: BRepGraph_WireId[], theChild: BRepGraph_CoEdgeId): BRepGraph_RefsWiresOfCoEdgeParameters (3)
theGraphtheParentstheChild
Instance methods(7)
BRepGraph_RelatedIterator
Single-level iterator over semantically related topology nodes.
The iterator yields immediate related nodes for one source node together with the relation kind explaining why each node is returned. Results are not deduplicated; callers that need uniqueness should filter on top.
Constructors(1)
- constructor(theGraph: BRepGraph, theNode: BRepGraph_NodeId): BRepGraph_RelatedIterator
Construct an iterator over all semantically related nodes of the given source node.
Parameters (2)theGraph—graph containing the nodetheNode—source node whose relations are iterated
Instance methods(5)
- More(): boolean
True if another related node is available.
- Next(): void
Advance to the next related node.
Return the current related node id.
- CurrentRelation(): BRepGraph_RelatedIterator_RelationKind
Return the relation kind explaining why the current node is related.
Returns a sentinel marking the end of iteration.
BRepGraph_ReverseIterator_CompSolidFromSolidRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_SolidRefId): BRepGraph_CompSolidIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_CompoundFromChildRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_ChildRefId): BRepGraph_CompoundIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_EdgeOfVertexRefTraits
Constructors(1)
Static methods(1)
- FindRef(theGraph: BRepGraph, theParent: BRepGraph_EdgeId, theChild: BRepGraph_VertexId): BRepGraph_VertexRefIdParameters (3)
theGraphtheParenttheChild
BRepGraph_ReverseIterator_FaceFromEdgeCoEdgeTraits
Constructors(1)
Static methods(2)
- ParentIdOf(theCoEdge: BRepGraphInc_CoEdgeDef): BRepGraph_FaceIdParameters (1)
theCoEdge
- Parameters (1)
theGraph
BRepGraph_ReverseIterator_FaceFromWireRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_WireRefId): BRepGraph_FaceIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_OccurrenceFromOccurrenceRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_OccurrenceRefId): BRepGraph_OccurrenceIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_ProductFromOccurrenceRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_OccurrenceRefId): BRepGraph_ProductIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_ShellFromFaceRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_FaceRefId): BRepGraph_ShellIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_SolidFromShellRefTraits
Constructors(1)
Static methods(1)
- Id(theGraph: BRepGraph, theRefId: BRepGraph_ShellRefId): BRepGraph_SolidIdParameters (2)
theGraphtheRefId
BRepGraph_ReverseIterator_WireFromEdgeCoEdgeTraits
Constructors(1)
Static methods(2)
- ParentIdOf(theCoEdge: BRepGraphInc_CoEdgeDef): BRepGraph_WireIdParameters (1)
theCoEdge
- Parameters (1)
theGraph
BRepGraph_ReverseIterator_WireOfCoEdgeUsageTraits
Constructors(1)
Static methods(1)
- FindRef(theGraph: BRepGraph, theParent: BRepGraph_WireId, theChild: BRepGraph_CoEdgeId): BRepGraph_CoEdgeIdParameters (3)
theGraphtheParenttheChild
BRepGraph_RootProductIterator
Allocation-free iterator over root product identifiers.
Iterates directly over BRepGraph::RootProductIds() - products not referenced by any active occurrence.
Constructors(1)
- constructor(theGraph: BRepGraph): BRepGraph_RootProductIteratorParameters (1)
theGraph
Instance methods(4)
BRepGraph_ShapesView
Instance methods(18)
- Add(theShape: TopoDS_Shape): BRepGraph_ShapesView_ResultParameters (1)
theShape
- Add(theShape: TopoDS_Shape, theOptions: BRepGraph_ShapesView_Options): BRepGraph_ShapesView_ResultParameters (2)
theShapetheOptions
- Add(theShape: TopoDS_Shape, theParent: BRepGraph_NodeId): BRepGraph_ShapesView_ResultParameters (2)
theShapetheParent
- Add(theShape: TopoDS_Shape, theParent: BRepGraph_NodeId, theOptions: BRepGraph_ShapesView_Options): BRepGraph_ShapesView_ResultParameters (3)
theShapetheParenttheOptions
- CollectHistoryInputs(theRoots: NCollection_Array1_BRepGraph_NodeId, theOutInputs: NCollection_DataMap_TopoDS_Shape_BRepGraph_NodeId_TopTools_ShapeMapHasher): voidParameters (2)
theRootstheOutInputs
- AddWithHistory(theResultShape: TopoDS_Shape, theInputs: NCollection_DataMap_TopoDS_Shape_BRepGraph_NodeId_TopTools_ShapeMapHasher, theHistory: BRepTools_History, theOpLabel: TCollection_AsciiString): BRepGraph_ShapesView_ResultParameters (4)
theResultShapetheInputstheHistorytheOpLabel
- AddWithHistory(theResultShape: TopoDS_Shape, theInputRoots: NCollection_Array1_BRepGraph_NodeId, theHistory: BRepTools_History, theOpLabel: TCollection_AsciiString): BRepGraph_ShapesView_ResultParameters (4)
theResultShapetheInputRootstheHistorytheOpLabel
- AddWithHistory(theResultShape: TopoDS_Shape, theInputs: NCollection_DataMap_TopoDS_Shape_BRepGraph_NodeId_TopTools_ShapeMapHasher, theHistory: BRepTools_History, theOpLabel: TCollection_AsciiString, theOptions: BRepGraph_ShapesView_Options): BRepGraph_ShapesView_ResultParameters (5)
theResultShapetheInputstheHistorytheOpLabeltheOptions
- AddWithHistory(theResultShape: TopoDS_Shape, theInputRoots: NCollection_Array1_BRepGraph_NodeId, theHistory: BRepTools_History, theOpLabel: TCollection_AsciiString, theOptions: BRepGraph_ShapesView_Options): BRepGraph_ShapesView_ResultParameters (5)
theResultShapetheInputRootstheHistorytheOpLabeltheOptions
- Shape(theNode: BRepGraph_NodeId): TopoDS_ShapeParameters (1)
theNode
- HasOriginal(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
- Original(theNode: BRepGraph_NodeId): TopoDS_ShapeParameters (1)
theNode
- Reconstruct(theRoot: BRepGraph_NodeId): TopoDS_ShapeParameters (1)
theRoot
- ClearCached(theNode: BRepGraph_NodeId): voidParameters (1)
theNode
- ClearCached(theRef: BRepGraph_RefId): voidParameters (1)
theRef
- FindNode(theShape: TopoDS_Shape): BRepGraph_NodeIdParameters (1)
theShape
- HasNode(theShape: TopoDS_Shape): booleanParameters (1)
theShape
- RemoveShape(theShape: TopoDS_Shape): booleanParameters (1)
theShape
BRepGraph_ShapesView_Result
Constructors(1)
Instance methods(1)
- IsOk(): boolean
Properties(6)
BRepGraph_ShellId
Constructors(3)
- constructor(theIdx: number): BRepGraph_ShellIdParameters (1)
theIdx
- constructor(theId: BRepGraph_NodeId): BRepGraph_ShellIdParameters (1)
theId
Static methods(3)
- Start(): BRepGraph_NodeId_Typed
- Invalid(): BRepGraph_NodeId_Typed
- FromNodeId(theId: BRepGraph_NodeId): BRepGraph_NodeId_TypedParameters (1)
theId
Instance methods(4)
Properties(1)
BRepGraph_ShellRefId
Constructors(3)
- constructor(theIdx: number): BRepGraph_ShellRefIdParameters (1)
theIdx
- constructor(theRefId: BRepGraph_RefId): BRepGraph_ShellRefIdParameters (1)
theRefId
Static methods(3)
- Start(): BRepGraph_RefId_Typed
- Invalid(): BRepGraph_RefId_Typed
- FromRefId(theRefId: BRepGraph_RefId): BRepGraph_RefId_TypedParameters (1)
theRefId
Instance methods(4)
Properties(1)
BRepGraph_SolidId
Constructors(3)
- constructor(theIdx: number): BRepGraph_SolidIdParameters (1)
theIdx
- constructor(theId: BRepGraph_NodeId): BRepGraph_SolidIdParameters (1)
theId
Static methods(3)
- Start(): BRepGraph_NodeId_Typed
- Invalid(): BRepGraph_NodeId_Typed
- FromNodeId(theId: BRepGraph_NodeId): BRepGraph_NodeId_TypedParameters (1)
theId
Instance methods(4)
Properties(1)
BRepGraph_SolidRefId
Constructors(3)
- constructor(theIdx: number): BRepGraph_SolidRefIdParameters (1)
theIdx
- constructor(theRefId: BRepGraph_RefId): BRepGraph_SolidRefIdParameters (1)
theRefId
Static methods(3)
- Start(): BRepGraph_RefId_Typed
- Invalid(): BRepGraph_RefId_Typed
- FromRefId(theRefId: BRepGraph_RefId): BRepGraph_RefId_TypedParameters (1)
theRefId
Instance methods(4)
Properties(1)
BRepGraph_SupplementEditor
Lightweight mutation facade for runtime supplement attachments.
Constructors(1)
- constructor(theGraph: BRepGraph): BRepGraph_SupplementEditor
Create an editor facade bound to one graph instance.
Parameters (1)theGraph—graph receiving supplement attachments
Instance methods(9)
- Attach(theOwner: BRepGraph_NodeId, theKind: BRepGraph_LayerTopoSupplement_AttachmentKind, theShape: TopoDS_Shape): number
Attach one supplemental shape to an arbitrary supported core owner.
Parameters (3)theOwner—active owner nodetheKind—semantic attachment kindtheShape—supplemental shape to attach
Returnsnon-zero attachment uid on success,
0on rejection - AttachToVertex(theVertex: BRepGraph_VertexId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a vertex owner.
Parameters (3)theVertex—active vertex ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToEdge(theEdge: BRepGraph_EdgeId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to an edge owner.
Parameters (3)theEdge—active edge ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToFace(theFace: BRepGraph_FaceId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a face owner.
Parameters (3)theFace—active face ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToSolid(theSolid: BRepGraph_SolidId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a solid owner.
Parameters (3)theSolid—active solid ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToCompSolid(theCompSolid: BRepGraph_CompSolidId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a compsolid owner.
Parameters (3)theCompSolid—active compsolid ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToShell(theShell: BRepGraph_ShellId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a shell owner.
Parameters (3)theShell—active shell ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - AttachToCompound(theCompound: BRepGraph_CompoundId, theShape: TopoDS_Shape, theKind?: BRepGraph_LayerTopoSupplement_AttachmentKind): number
Attach a supplemental shape to a compound owner.
Parameters (3)theCompound—active compound ownertheShape—supplemental shape to attachtheKind—semantic attachment kind
Returnsnon-zero attachment uid on success,
0on rejection - RemoveAttachment(theUid: number): boolean
Remove one attachment by uid.
Parameters (1)theUid—layer-local attachment uid
Returnstruewhen the attachment existed and was removed
BRepGraph_SupplementIterator
Iterator over supplemental TopoDS attachments owned by one core node.
The iterator resolves BRepGraph_LayerTopoSupplement through the graph layer registry and yields only explicit supplement attachments. Core traversal remains core-only and does not surface these entries.
Constructors(1)
- constructor(theGraph: BRepGraph, theOwner: BRepGraph_NodeId): BRepGraph_SupplementIterator
Construct an iterator over supplement attachments of one owner.
Parameters (2)theGraph—graph providing the supplement layertheOwner—core owner node whose attachments should be iterated
Instance methods(5)
BRepGraph_Tool
Centralized geometry access for BRepGraph - analogue of BRep_Tool.
Geometry in BRepGraph is stored in the definition frame (representation Location baked via applyRepresentationLocation). Instance Locations live on topology Instance/Ref structs (VertexInstance, CoEdgeInstance, WireInstance, FaceInstance, ShellInstance, SolidInstance, OccurrenceInstance). This class applies ref Locations automatically when accessing 3D geometry.
Instance structs are lightweight read-only projections produced during traversal, while Ref structs are stored reference entries from RefsView; this API accepts whichever form naturally carries the required context for the queried property.
Methods are grouped by topology kind via nested classes: BRepGraph_Tool::Vertex, Edge, CoEdge, Face, Wire, Shell.
BRepGraph_Tool_CoEdge
Constructors(1)
Static methods(14)
- Orientation(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): TopAbs_OrientationParameters (2)
theGraphtheCoEdge
- IsReversed(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): booleanParameters (2)
theGraphtheCoEdge
- EdgeOf(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): BRepGraph_EdgeIdParameters (2)
theGraphtheCoEdge
- FaceOf(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): BRepGraph_FaceIdParameters (2)
theGraphtheCoEdge
- SeamPair(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): BRepGraph_CoEdgeIdParameters (2)
theGraphtheCoEdge
- IsSeam(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): booleanParameters (2)
theGraphtheCoEdge
- HasPCurve(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): booleanParameters (2)
theGraphtheCoEdge
- SameParameter(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): booleanParameters (2)
theGraphtheCoEdge
- SameRange(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): booleanParameters (2)
theGraphtheCoEdge
- PCurve(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): Geom2d_CurveParameters (2)
theGraphtheCoEdge
- PCurveAdaptor(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): Geom2dAdaptor_CurveParameters (2)
theGraphtheCoEdge
- PCurveAdaptor(theGraph: BRepGraph, theRef: any): Geom2dAdaptor_CurveParameters (2)
theGraphtheRef
- UVPoints(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): [gp_Pnt2d, gp_Pnt2d]Parameters (2)
theGraphtheCoEdge
- Range(theGraph: BRepGraph, theCoEdge: BRepGraph_CoEdgeId): [number, number]Parameters (2)
theGraphtheCoEdge
BRepGraph_Tool_Edge
Constructors(1)
Static methods(21)
- Tolerance(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): numberParameters (2)
theGraphtheEdge
- Degenerated(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): booleanParameters (2)
theGraphtheEdge
- IsClosed(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): booleanParameters (2)
theGraphtheEdge
- Range(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): [number, number]Parameters (2)
theGraphtheEdge
- StartVertexId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): BRepGraph_VertexRefIdParameters (2)
theGraphtheEdge
- EndVertexId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): BRepGraph_VertexRefIdParameters (2)
theGraphtheEdge
- HasCurve(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): booleanParameters (2)
theGraphtheEdge
- Curve(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): Geom_CurveParameters (2)
theGraphtheEdge
- Curve(theGraph: BRepGraph, theRef: any): Geom_CurveParameters (2)
theGraphtheRef
- CurveAdaptor(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): GeomAdaptor_TransformedCurveParameters (2)
theGraphtheEdge
- CurveAdaptor(theGraph: BRepGraph, theRef: any): GeomAdaptor_TransformedCurveParameters (2)
theGraphtheRef
- FindByVertices(theGraph: BRepGraph, theStartVertex: BRepGraph_VertexId, theEndVertex: BRepGraph_VertexId, theToIgnoreOrientation?: boolean): BRepGraph_EdgeIdParameters (4)
theGraphtheStartVertextheEndVertextheToIgnoreOrientation
- FindPCurveCoEdgeId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theFace: BRepGraph_FaceId): BRepGraph_CoEdgeIdParameters (3)
theGraphtheEdgetheFace
- FindPCurveCoEdgeId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theFace: BRepGraph_FaceId, theOrientation: TopAbs_Orientation): BRepGraph_CoEdgeIdParameters (4)
theGraphtheEdgetheFacetheOrientation
- FindCoEdgeId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theFace: BRepGraph_FaceId): BRepGraph_CoEdgeIdParameters (3)
theGraphtheEdgetheFace
- FindCoEdgeId(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theFace: BRepGraph_FaceId, theOrientation: TopAbs_Orientation): BRepGraph_CoEdgeIdParameters (4)
theGraphtheEdgetheFacetheOrientation
- NbFaces(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): numberParameters (2)
theGraphtheEdge
- IsManifold(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): booleanParameters (2)
theGraphtheEdge
- IsBoundary(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): booleanParameters (2)
theGraphtheEdge
- IsSeamOnFace(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theFace: BRepGraph_FaceId): booleanParameters (3)
theGraphtheEdgetheFace
- CurveOnSurface(theGraph: BRepGraph, theRef: any, theFace: BRepGraph_FaceId): Adaptor3d_CurveOnSurfaceParameters (3)
theGraphtheReftheFace
BRepGraph_Tool_Face
Constructors(1)
Static methods(19)
- Usage(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): anyParameters (2)
theGraphtheFaceRef
- Tolerance(theGraph: BRepGraph, theFace: BRepGraph_FaceId): numberParameters (2)
theGraphtheFace
- Tolerance(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): numberParameters (2)
theGraphtheFaceRef
- HasSurface(theGraph: BRepGraph, theFace: BRepGraph_FaceId): booleanParameters (2)
theGraphtheFace
- HasSurface(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): booleanParameters (2)
theGraphtheFaceRef
- OuterWire(theGraph: BRepGraph, theFace: BRepGraph_FaceId): BRepGraph_WireIdParameters (2)
theGraphtheFace
- OuterWire(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): BRepGraph_WireIdParameters (2)
theGraphtheFaceRef
- Surface(theGraph: BRepGraph, theFace: BRepGraph_FaceId): Geom_SurfaceParameters (2)
theGraphtheFace
- Surface(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): Geom_SurfaceParameters (2)
theGraphtheFaceRef
- SurfaceAdaptor(theGraph: BRepGraph, theFace: BRepGraph_FaceId): GeomAdaptor_TransformedSurfaceParameters (2)
theGraphtheFace
- SurfaceAdaptor(theGraph: BRepGraph, theRef: any): GeomAdaptor_TransformedSurfaceParameters (2)
theGraphtheRef
- SurfaceAdaptor(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): GeomAdaptor_TransformedSurfaceParameters (2)
theGraphtheFaceRef
- SurfaceAdaptor(theGraph: BRepGraph, theFace: BRepGraph_FaceId, theUFirst: number, theULast: number, theVFirst: number, theVLast: number): GeomAdaptor_TransformedSurfaceParameters (6)
theGraphtheFacetheUFirsttheULasttheVFirsttheVLast
- SurfaceAdaptor(theGraph: BRepGraph, theRef: any, theUFirst: number, theULast: number, theVFirst: number, theVLast: number): GeomAdaptor_TransformedSurfaceParameters (6)
theGraphtheReftheUFirsttheULasttheVFirsttheVLast
- SurfaceAdaptor(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId, theUFirst: number, theULast: number, theVFirst: number, theVLast: number): GeomAdaptor_TransformedSurfaceParameters (6)
theGraphtheFaceReftheUFirsttheULasttheVFirsttheVLast
- NbWires(theGraph: BRepGraph, theFace: BRepGraph_FaceId): numberParameters (2)
theGraphtheFace
- NbWires(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId): numberParameters (2)
theGraphtheFaceRef
- Bounds(theGraph: BRepGraph, theFace: BRepGraph_FaceId, theUMin: number, theUMax: number, theVMin: number, theVMax: number): { theUMin: number; theUMax: number; theVMin: number; theVMax: number }Parameters (6)
theGraphtheFacetheUMintheUMaxtheVMintheVMax
- Bounds(theGraph: BRepGraph, theFaceRef: BRepGraph_FaceRefId, theUMin: number, theUMax: number, theVMin: number, theVMax: number): { theUMin: number; theUMax: number; theVMin: number; theVMax: number }Parameters (6)
theGraphtheFaceReftheUMintheUMaxtheVMintheVMax
BRepGraph_Tool_Shell
Constructors(1)
Static methods(5)
- Usage(theGraph: BRepGraph, theShellRef: BRepGraph_ShellRefId): anyParameters (2)
theGraphtheShellRef
- IsClosed(theGraph: BRepGraph, theShell: BRepGraph_ShellId): booleanParameters (2)
theGraphtheShell
- IsClosed(theGraph: BRepGraph, theShellRef: BRepGraph_ShellRefId): booleanParameters (2)
theGraphtheShellRef
- NbFaces(theGraph: BRepGraph, theShell: BRepGraph_ShellId): numberParameters (2)
theGraphtheShell
- NbFaces(theGraph: BRepGraph, theShellRef: BRepGraph_ShellRefId): numberParameters (2)
theGraphtheShellRef
BRepGraph_Tool_Vertex
Constructors(1)
Static methods(7)
- Usage(theGraph: BRepGraph, theVertexRef: BRepGraph_VertexRefId): anyParameters (2)
theGraphtheVertexRef
- Parameters (2)
theGraphtheRef
- Pnt(theGraph: BRepGraph, theVertex: BRepGraph_VertexId): gp_PntParameters (2)
theGraphtheVertex
- Pnt(theGraph: BRepGraph, theVertexRef: BRepGraph_VertexRefId): gp_PntParameters (2)
theGraphtheVertexRef
- Tolerance(theGraph: BRepGraph, theVertex: BRepGraph_VertexId): numberParameters (2)
theGraphtheVertex
- Tolerance(theGraph: BRepGraph, theVertexRef: BRepGraph_VertexRefId): numberParameters (2)
theGraphtheVertexRef
- NbEdges(theGraph: BRepGraph, theVertex: BRepGraph_VertexId): numberParameters (2)
theGraphtheVertex
BRepGraph_Tool_Wire
Constructors(1)
Static methods(11)
- Usage(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): anyParameters (2)
theGraphtheWireRef
- IsClosed(theGraph: BRepGraph, theWire: BRepGraph_WireId): booleanParameters (2)
theGraphtheWire
- IsClosed(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): booleanParameters (2)
theGraphtheWireRef
- NbCoEdges(theGraph: BRepGraph, theWire: BRepGraph_WireId): numberParameters (2)
theGraphtheWire
- NbCoEdges(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): numberParameters (2)
theGraphtheWireRef
- NbDistinctEdges(theGraph: BRepGraph, theWire: BRepGraph_WireId): numberParameters (2)
theGraphtheWire
- NbDistinctEdges(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): numberParameters (2)
theGraphtheWireRef
- FaceOf(theGraph: BRepGraph, theWire: BRepGraph_WireId): BRepGraph_FaceIdParameters (2)
theGraphtheWire
- FaceOf(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): BRepGraph_FaceIdParameters (2)
theGraphtheWireRef
- IsOuter(theGraph: BRepGraph, theWire: BRepGraph_WireId): booleanParameters (2)
theGraphtheWire
- IsOuter(theGraph: BRepGraph, theWireRef: BRepGraph_WireRefId): booleanParameters (2)
theGraphtheWireRef
BRepGraph_TopoView
Instance methods(13)
BRepGraph_TopoView_CoEdgeOps
Instance methods(9)
- Nb(): number
- NbActive(): number
- Definition(theCoEdge: BRepGraph_CoEdgeId): BRepGraphInc_CoEdgeDefParameters (1)
theCoEdge
- Edge(theCoEdge: BRepGraph_CoEdgeId): BRepGraph_EdgeIdParameters (1)
theCoEdge
- Face(theCoEdge: BRepGraph_CoEdgeId): BRepGraph_FaceIdParameters (1)
theCoEdge
- Wire(theCoEdge: BRepGraph_CoEdgeId): BRepGraph_WireIdParameters (1)
theCoEdge
- Curve2D(theCoEdge: BRepGraph_CoEdgeId): Geom2d_CurveParameters (1)
theCoEdge
BRepGraph_TopoView_CompSolidOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Definition(theCompSolid: BRepGraph_CompSolidId): BRepGraphInc_CompSolidDefParameters (1)
theCompSolid
- Relations(theCompSolid: BRepGraph_CompSolidId): BRepGraphInc_CompSolidRelationsParameters (1)
theCompSolid
BRepGraph_TopoView_CompoundOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Definition(theCompound: BRepGraph_CompoundId): BRepGraphInc_CompoundDefParameters (1)
theCompound
- Relations(theCompound: BRepGraph_CompoundId): BRepGraphInc_CompoundRelationsParameters (1)
theCompound
BRepGraph_TopoView_EdgeOps
Instance methods(13)
- Nb(): number
- NbActive(): number
- Definition(theEdge: BRepGraph_EdgeId): BRepGraphInc_EdgeDefParameters (1)
theEdge
- Relations(theEdge: BRepGraph_EdgeId): BRepGraphInc_EdgeRelationsParameters (1)
theEdge
- NbFaces(theEdge: BRepGraph_EdgeId): numberParameters (1)
theEdge
- WiresOf(theEdge: BRepGraph_EdgeId): BRepGraph_WiresOfEdgeParameters (1)
theEdge
- WiresOf(theEdge: BRepGraph_EdgeId, theStartIndex: number): BRepGraph_WiresOfEdgeParameters (2)
theEdgetheStartIndex
- FacesOf(theEdge: BRepGraph_EdgeId): BRepGraph_FacesOfEdgeParameters (1)
theEdge
- FacesOf(theEdge: BRepGraph_EdgeId, theStartIndex: number): BRepGraph_FacesOfEdgeParameters (2)
theEdgetheStartIndex
- CoEdges(theEdge: BRepGraph_EdgeId): BRepGraph_CoEdgeId[]Parameters (1)
theEdge
- Curve3D(theEdge: BRepGraph_EdgeId): Geom_CurveParameters (1)
theEdge
BRepGraph_TopoView_FaceOps
Instance methods(8)
- Nb(): number
- NbActive(): number
- Definition(theFace: BRepGraph_FaceId): BRepGraphInc_FaceDefParameters (1)
theFace
- Relations(theFace: BRepGraph_FaceId): BRepGraphInc_FaceRelationsParameters (1)
theFace
- Surface(theFace: BRepGraph_FaceId): Geom_SurfaceParameters (1)
theFace
- Parameters (1)
theFace
BRepGraph_TopoView_GenOps
Instance methods(10)
- Parameters (1)
theId
- CompoundRefIds(theChild: BRepGraph_NodeId): BRepGraph_ChildRefId[]Parameters (1)
theChild
- OccurrenceRefIds(theChild: BRepGraph_NodeId): BRepGraph_OccurrenceRefId[]Parameters (1)
theChild
- HasCompoundParents(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
- HasOccurrenceParents(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
- NbNodes(): number
- Nb(theKind: BRepGraph_NodeId_Kind): numberParameters (1)
theKind
- IsValid(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
- IsActive(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
- IsRemoved(theNode: BRepGraph_NodeId): booleanParameters (1)
theNode
BRepGraph_TopoView_GeometryOps
Instance methods(6)
- NbFaceSurfaces(): number
- NbEdgeCurves3D(): number
- NbCoEdgeCurves2D(): number
- NbActiveFaceSurfaces(): number
- NbActiveEdgeCurves3D(): number
- NbActiveCoEdgeCurves2D(): number
BRepGraph_TopoView_OccurrenceOps
Instance methods(9)
- Nb(): number
- NbActive(): number
- Definition(theOccurrence: BRepGraph_OccurrenceId): BRepGraphInc_OccurrenceDefParameters (1)
theOccurrence
- Relations(theOccurrence: BRepGraph_OccurrenceId): BRepGraphInc_OccurrenceRelationsParameters (1)
theOccurrence
- Product(theOccurrence: BRepGraph_OccurrenceId): BRepGraph_ProductIdParameters (1)
theOccurrence
- ParentProduct(theOccurrence: BRepGraph_OccurrenceId): BRepGraph_ProductIdParameters (1)
theOccurrence
- OccurrenceLocation(theOccurrence: BRepGraph_OccurrenceId): TopLoc_LocationParameters (1)
theOccurrence
BRepGraph_TopoView_ProductOps
Instance methods(12)
- Nb(): number
- NbActive(): number
- Definition(theProduct: BRepGraph_ProductId): BRepGraphInc_ProductDefParameters (1)
theProduct
- Relations(theProduct: BRepGraph_ProductId): BRepGraphInc_ProductRelationsParameters (1)
theProduct
- ShapeRoot(theProduct: BRepGraph_ProductId): BRepGraph_NodeIdParameters (1)
theProduct
- IsAssembly(theProduct: BRepGraph_ProductId): booleanParameters (1)
theProduct
- IsPart(theProduct: BRepGraph_ProductId): booleanParameters (1)
theProduct
- ShapeRootNode(theProduct: BRepGraph_ProductId): BRepGraph_NodeIdParameters (1)
theProduct
- NbComponents(theProduct: BRepGraph_ProductId): numberParameters (1)
theProduct
- Component(theProduct: BRepGraph_ProductId, theComponentIdx: number): BRepGraph_OccurrenceIdParameters (2)
theProducttheComponentIdx
BRepGraph_TopoView_ShellOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Definition(theShell: BRepGraph_ShellId): BRepGraphInc_ShellDefParameters (1)
theShell
- Relations(theShell: BRepGraph_ShellId): BRepGraphInc_ShellRelationsParameters (1)
theShell
BRepGraph_TopoView_SolidOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Definition(theSolid: BRepGraph_SolidId): BRepGraphInc_SolidDefParameters (1)
theSolid
- Relations(theSolid: BRepGraph_SolidId): BRepGraphInc_SolidRelationsParameters (1)
theSolid
BRepGraph_TopoView_VertexOps
Instance methods(7)
- Nb(): number
- NbActive(): number
- Definition(theVertex: BRepGraph_VertexId): BRepGraphInc_VertexDefParameters (1)
theVertex
- Relations(theVertex: BRepGraph_VertexId): BRepGraphInc_VertexRelationsParameters (1)
theVertex
- Edges(theVertex: BRepGraph_VertexId): BRepGraph_EdgeId[]Parameters (1)
theVertex
BRepGraph_TopoView_WireOps
Instance methods(6)
- Nb(): number
- NbActive(): number
- Definition(theWire: BRepGraph_WireId): BRepGraphInc_WireDefParameters (1)
theWire
- Relations(theWire: BRepGraph_WireId): BRepGraphInc_WireRelationsParameters (1)
theWire
BRepGraph_Transform
Graph-to-graph transformation.
Applies a geometric transformation to vertex points and geometry node locations by copying into a target graph, then transforming in-place.
Two geometry modes (matching BRepBuilderAPI_Transform semantics):
- GeomPolicy::Copy (geometry-level): deep-copy geometry, create new transformed handles via
Geom_Geometry::Transformed(), reset locations to identity. - GeomPolicy::Share (root-level): light-copy with shared geometry, apply transform via location modification only.
Mesh handling (MeshPolicy parameter): - MeshPolicy::Drop (default for Transform): triangulations and polygons are discarded after a geometry-level transform and must be recomputed.
- MeshPolicy::Copy: all mesh data (
Poly_Triangulationon FaceDefs and the MeshLayer cache,Poly_Polygon3Don edges,Poly_PolygonOnTriangulationon coedges) is copied and transformed in sync with the geometry. In location-only mode the mesh data is copied as-is (nodes stay in the graph coordinate system, which is unaffected by a pure location compose).
Typical usage
Static methods(4)
- Perform(theSourceGraph: BRepGraph, theTargetGraph: BRepGraph, theTrsf: gp_Trsf, theGeomPolicy?: BRepGraph_Copy_GeomPolicy, theMeshPolicy?: BRepGraph_Copy_MeshPolicy): boolean
Transform the entire graph into a target graph.
Self-transform (theSourceGraph == theTargetGraph): Applies transform in-place on theTargetGraph.
External transform to empty target (theTargetGraph.IsEmpty()): Copies source into target, then transforms.
External transform to non-empty target: Appends source entities into target with explicit mapping, then transforms.Parameters (5)theSourceGraph—a pre-builtBRepGraph(must not be empty)theTargetGraph—destination graph (may already contain data)theTrsf—the transformation to applytheGeomPolicy—geometry handle policy (default: Copy)theMeshPolicy—mesh data policy (default: Drop)
Returnstrue on success, false on failure (empty source, or Drop + geometry-modification-required)
- TransformNode(theSourceGraph: BRepGraph, theTargetGraph: BRepGraph, theNodeId: BRepGraph_NodeId, theTrsf: gp_Trsf, theGeomPolicy?: BRepGraph_Copy_GeomPolicy, theMeshPolicy?: BRepGraph_Copy_MeshPolicy): BRepGraph_NodeId
Transform a single node sub-graph of any kind. Topology nodes are copied and transformed by baking the transform into their definitions.
Self-transform (theSourceGraph == theTargetGraph): Duplicates the sub-graph with new entity IDs, then transforms the copy.
External transform: Copies the sub-graph into theTargetGraph, then transforms.Parameters (6)theSourceGraph—a pre-builtBRepGraphtheTargetGraph—destination graph (may already contain data)theNodeId—node identifier (any kind)theTrsf—the transformation to applytheGeomPolicy—geometry handle policy (default: Copy; Drop is invalid for topology)theMeshPolicy—mesh data policy (default: Drop)
Returnsthe mapped root NodeId in theTargetGraph, or invalid NodeId on failure
- MoveRef(theGraph: BRepGraph, theRefId: BRepGraph_ChildRefId, theTrsf: gp_Trsf): boolean
Apply an in-place location-only transform to a child reference. Composes theTrsf into ChildRef placement without copying any geometry. Cached mesh data on entities downstream of the moved ref is stored in the entity's local frame and is unaffected; callers that bake a world transform into a cache key own the invalidation responsibility.
Parameters (3)theGraph—the graph containing the referencetheRefId—child reference to movetheTrsf—the transformation to compose into the location
Returnstrue on success; false if the ref is invalid/removed or theTrsf has non-unit scale
RemarksNote: Only pure rotation/translation transforms (scale == 1) are supported. The method returns false if |scaleFactor| != 1.
- MoveRef(theGraph: BRepGraph, theRefId: BRepGraph_OccurrenceRefId, theTrsf: gp_Trsf): boolean
Apply an in-place location-only transform to a child reference. Composes theTrsf into ChildRef placement without copying any geometry. Cached mesh data on entities downstream of the moved ref is stored in the entity's local frame and is unaffected; callers that bake a world transform into a cache key own the invalidation responsibility.
Parameters (3)theGraph—the graph containing the referencetheRefId—child reference to movetheTrsf—the transformation to compose into the location
Returnstrue on success; false if the ref is invalid/removed or theTrsf has non-unit scale
RemarksNote: Only pure rotation/translation transforms (scale == 1) are supported. The method returns false if |scaleFactor| != 1.
BRepGraph_UID
Unique definition-node identifier within a BRepGraph.
Identity = (Kind, Counter). Two nodes of different kinds may share a counter value but their UIDs are distinct. Within one kind, counter values never repeat (monotonic, never resets).
Trivially copyable, cheap to pass by value.
Constructors(2)
Default: invalid UID (counter = 0 is the invalid sentinel).
- constructor(theKind: BRepGraph_NodeId_Kind, theCounter: number): BRepGraph_UID
Construct a valid UID. Called internally by
BRepGraphInc_Storage::AllocateNodeUID().Parameters (2)theKindtheCounter
Static methods(1)
Factory: returns an explicitly invalid UID.
Instance methods(4)
- IsValid(): boolean
True if this UID has a valid kind and a non-zero counter.
- IsTopology(): boolean
- IsAssembly(): boolean
- HashValue(): number
Hash value compatible with operator==.
Properties(2)
BRepGraph_UIDsView
Instance methods(16)
- Of(theNode: BRepGraph_NodeId): BRepGraph_UIDParameters (1)
theNode
- Of(theRefId: BRepGraph_RefId): BRepGraph_RefUIDParameters (1)
theRefId
- Of(theItem: BRepGraph_ItemId): BRepGraph_ItemUIDParameters (1)
theItem
- NodeIdFrom(theUID: BRepGraph_UID): BRepGraph_NodeIdParameters (1)
theUID
- RefIdFrom(theUID: BRepGraph_RefUID): BRepGraph_RefIdParameters (1)
theUID
- ItemIdFrom(theUID: BRepGraph_ItemUID): BRepGraph_ItemIdParameters (1)
theUID
- Has(theUID: BRepGraph_UID): booleanParameters (1)
theUID
- Has(theUID: BRepGraph_RefUID): booleanParameters (1)
theUID
- Has(theUID: BRepGraph_ItemUID): booleanParameters (1)
theUID
- Generation(): number
- StampOf(theNode: BRepGraph_NodeId): BRepGraph_VersionStampParameters (1)
theNode
- StampOf(theRefId: BRepGraph_RefId): BRepGraph_VersionStampParameters (1)
theRefId
- StampOf(theRepId: BRepGraph_RepId): BRepGraph_VersionStampParameters (1)
theRepId
- StampOf(theItem: BRepGraph_ItemId): BRepGraph_VersionStampParameters (1)
theItem
- IsStale(theStamp: BRepGraph_VersionStamp): booleanParameters (1)
theStamp
BRepGraph_UsagePath
Explicit identity of a concrete usage from traversal root to selected node.
A usage path is an ordered sequence of steps that records the exact traversal from a root node down to a specific graph entity. Each step captures the node reached, the reference through which it was reached, and the sibling order (step index) at that level.
Paths are used to disambiguate multiple occurrences of the same definition reachable through different references or sibling positions.
Constructors(2)
Creates an empty usage path.
- constructor(theCapacity: number): BRepGraph_UsagePath
Creates a usage path with pre-allocated capacity.
Parameters (1)theCapacity—number of steps to pre-allocate
Instance methods(10)
- Size(): number
Returns the number of steps in the path.
- IsEmpty(): boolean
Returns true if the path has no steps.
- Value(theIdx: number): BRepGraph_UsagePath_Step
Returns the step at the given index.
Parameters (1)theIdx—zero-based index
Returns the first step in the path.
Returns the last step in the path.
- Append(theStep: BRepGraph_UsagePath_Step): void
Appends a step to the end of the path.
Parameters (1)theStep—step to append
- InsertBefore(theIdx: number, theStep: BRepGraph_UsagePath_Step): void
Inserts a step before the given index.
Parameters (2)theIdx—zero-based index to insert beforetheStep—step to insert
- Clear(): void
Removes all steps from the path.
- IsEqual(theOther: BRepGraph_UsagePath): boolean
Returns true if this path is equal to the other path.
Parameters (1)theOther—path to compare with
- HashCode(): number
Returns a hash code for this path. Uses first step, last step, and size for O(1) computation.
BRepGraph_UsagePath_Step
Constructors(1)
Properties(3)
BRepGraph_Validate
Structural invariant checker for BRepGraph.
Read-only algorithm that verifies the graph's internal consistency: cross-reference bounds, relation symmetry, incidence ref consistency, geometry reference validity, removed-node isolation, and wire connectivity.
Distinct from BRepGraphCheck (geometric shape validity). This class checks the graph data structure itself.
Validation Mode Check Matrix
CheckLightweightAudit Active entity count boundaryYESYES Document root product sanityYESYES Cross-reference bounds-YES Reverse-index consistency-YES Face-count cache consistency-YES Incidence ref consistency-YES Geometry representation refs-YES Removed-node isolationYESYES Wire edge connectivity-YES Entity ID positional integrity-YES UID round-trip integrity-YES Assembly DAG cycle detection-YES
Mode Guidance
ModeWhat it checksCostRecommended use LightweightActive entity count boundary plus removed-node isolationLowHot-path release builds when the graph structure is already trustedAuditFull structural audit from cross-reference bounds through assembly DAG cycle detection | Higher | Default validation mode for production pipelines, test gates, and API-boundary verification |
For production pipelines, prefer Mode::Audit; Mode::Lightweight is intended for hot-path release builds where the graph structure is already trusted.
Static methods(3)
- Perform(theGraph: BRepGraph): BRepGraph_Validate_Result
Run default lightweight structural checks on a built graph. Uses
Mode::Lightweight; for full structural audit use Perform(theGraph, Mode::Audit).Parameters (1)theGraph—graph to validate (const, read-only)
Returnsvalidation result with all detected issues
- Perform(theGraph: BRepGraph, theMode: BRepGraph_Validate_Mode): BRepGraph_Validate_Result
Run structural checks on a built graph with explicit mode.
Parameters (2)theGraph—graph to validate (const, read-only)theMode—validation mode
Returnsvalidation result with all detected issues
- Perform(theGraph: BRepGraph, theOptions: BRepGraph_Validate_Options): BRepGraph_Validate_Result
Run structural checks on a built graph with explicit options.
Parameters (2)theGraph—graph to validate (const, read-only)theOptions—validation profile/options
Returnsvalidation result with all detected issues
BRepGraph_Validate_Options
Constructors(1)
Static methods(2)
Properties(1)
BRepGraph_Validate_Result
Constructors(1)
Instance methods(2)
Properties(1)
BRepGraph_VersionStamp
Snapshot of a graph item identity and its freshness generation.
Combines a persistent node or reference UID with OwnGen (own-data mutation counter) and graph Generation (BRepGraph::Clear() cycle). It is intended for custom cache and layer freshness checks, not as a separate topology identity model.
Usage pattern:
Constructors(3)
Default constructor. Creates an invalid stamp (invalid UID, zero counters).
- constructor(theUID: BRepGraph_UID, theMutationGen: number, theGeneration: number): BRepGraph_VersionStamp
Construct a node-domain stamp from components.
Parameters (3)theUID—persistent definition-node identitytheMutationGen—OwnGen counter (own-data mutation counter)theGeneration—graphBRepGraph::Clear()generation
- constructor(theRefUID: BRepGraph_RefUID, theMutationGen: number, theGeneration: number): BRepGraph_VersionStamp
Construct a reference-domain stamp from components.
Parameters (3)theRefUID—persistent reference identitytheMutationGen—OwnGen counter (own-data mutation counter)theGeneration—graphBRepGraph::Clear()generation
Instance methods(7)
- IsValid(): boolean
Check if the stamp has a valid identity in its domain.
- IsNodeStamp(): boolean
True when this is a definition-node-domain stamp.
- IsRefStamp(): boolean
True when this is a reference-domain stamp.
Return the active generic item identity.
- IsSameItem(theOther: BRepGraph_VersionStamp): boolean
Check if two stamps refer to the same graph item regardless of version. Compares active UID only, ignoring OwnGen and Generation.
Parameters (1)theOther—stamp to compare with
Returnstrue if both stamps have the same domain and UID
- ToGUID(theGraphGUID: Standard_GUID): Standard_GUID
Derive a deterministic
Standard_GUIDfrom this stamp. The graph GUID is incorporated into the hash, making per-node GUIDs globally unique across different graph instances. One-way: cannot reconstruct stamp fields from the resulting GUID.Parameters (1)theGraphGUID—the owning graph's identity GUID
Returnsdeterministic
Standard_GUIDderived from stamp + graph GUID - HashValue(): number
Compute hash value consistent with operator==.
Returnshash combining active UID, domain, OwnGen, and Generation
Properties(7)
BRepGraph_VertexId
Constructors(3)
- constructor(theIdx: number): BRepGraph_VertexIdParameters (1)
theIdx
- Parameters (1)
theId
Static methods(3)
- Start(): BRepGraph_NodeId_Typed
- Invalid(): BRepGraph_NodeId_Typed
- FromNodeId(theId: BRepGraph_NodeId): BRepGraph_NodeId_TypedParameters (1)
theId
Instance methods(4)
Properties(1)
BRepGraph_VertexRefId
Constructors(3)
- constructor(theIdx: number): BRepGraph_VertexRefIdParameters (1)
theIdx
- constructor(theRefId: BRepGraph_RefId): BRepGraph_VertexRefIdParameters (1)
theRefId
Static methods(3)
- Start(): BRepGraph_RefId_Typed
- Invalid(): BRepGraph_RefId_Typed
- FromRefId(theRefId: BRepGraph_RefId): BRepGraph_RefId_TypedParameters (1)
theRefId
Instance methods(4)
Properties(1)
BRepGraph_WireId
Constructors(3)
- constructor(theIdx: number): BRepGraph_WireIdParameters (1)
theIdx
- constructor(theId: BRepGraph_NodeId): BRepGraph_WireIdParameters (1)
theId
Static methods(3)
- Start(): BRepGraph_NodeId_Typed
- Invalid(): BRepGraph_NodeId_Typed
- FromNodeId(theId: BRepGraph_NodeId): BRepGraph_NodeId_TypedParameters (1)
theId
Instance methods(4)
Properties(1)
BRepGraph_WireRefId
Constructors(3)
- constructor(theIdx: number): BRepGraph_WireRefIdParameters (1)
theIdx
- constructor(theRefId: BRepGraph_RefId): BRepGraph_WireRefIdParameters (1)
theRefId
Static methods(3)
- Start(): BRepGraph_RefId_Typed
- Invalid(): BRepGraph_RefId_Typed
- FromRefId(theRefId: BRepGraph_RefId): BRepGraph_RefId_TypedParameters (1)
theRefId
Instance methods(4)
Properties(1)
BRepGraph_WiresOfEdge
Constructors(2)
- constructor(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId): BRepGraph_WiresOfEdgeParameters (2)
theGraphtheEdge
- constructor(theGraph: BRepGraph, theEdge: BRepGraph_EdgeId, theStartIndex: number): BRepGraph_WiresOfEdgeParameters (3)
theGraphtheEdgetheStartIndex