Static helper that ingests a TopoDS_Shape into a BRepGraph.
More...
#include <BRepGraph_Builder.hxx>
Static helper that ingests a TopoDS_Shape into a BRepGraph.
◆ Add() [1/4]
Ingest a TopoDS_Shape as a new root subgraph, wrapping the topology root in a Product.
- Parameters
-
| [in,out] | theGraph | graph to populate |
| [in] | theShape | shape to ingest |
- Returns
- Result with TopologyRoot, Product and Occurrence set on success.
◆ Add() [2/4]
Ingest a TopoDS_Shape under an existing parent.
Parent kind dispatch:
- Product: creates a child part-product, links via Occurrence with shape.Location().
- Compound: appends topology root as a child reference.
- Shell: appends a Face as a FaceRef; other shapes via AddChild.
- Solid: appends a Shell as a ShellRef; other shapes via AddChild.
- CompSolid: appends a Solid as a SolidRef. Other parent kinds (Wire, Edge, Vertex, Occurrence) are not supported and yield an invalid Result (Result::Ok == false) without modification to the graph.
- Parameters
-
| [in,out] | theGraph | graph to populate |
| [in] | theShape | shape to ingest |
| [in] | theParent | parent node receiving the topology |
- Returns
- Result with TopologyRoot set, plus (Product, Occurrence, InsertedRef) for Product parents or InsertedRef for topology container parents.
◆ Add() [3/4]
◆ Add() [4/4]
Ingest a TopoDS_Shape as a new root subgraph with explicit options.
- Parameters
-
| [in,out] | theGraph | graph to populate |
| [in] | theShape | shape to ingest |
| [in] | theOptions | build-time options |
- Returns
- Result with TopologyRoot set on success; Product/Occurrence set when theOptions.CreateAutoProduct is true.
The documentation for this class was generated from the following file: