![]() |
Open CASCADE Technology Reference Manual 8.0.1
|
Graph-to-graph transformation. More...
#include <BRepGraph_Transform.hxx>
Public Member Functions | |
| BRepGraph_Transform ()=delete | |
Static Public Member Functions | |
| static bool | Perform (const BRepGraph &theSourceGraph, BRepGraph &theTargetGraph, const gp_Trsf &theTrsf, const BRepGraph_Copy::GeomPolicy theGeomPolicy=BRepGraph_Copy::GeomPolicy::Copy, const BRepGraph_Copy::MeshPolicy theMeshPolicy=BRepGraph_Copy::MeshPolicy::Drop) |
| Transform the entire graph into a target graph. | |
| static BRepGraph_NodeId | TransformNode (const BRepGraph &theSourceGraph, BRepGraph &theTargetGraph, const BRepGraph_NodeId theNodeId, const gp_Trsf &theTrsf, const BRepGraph_Copy::GeomPolicy theGeomPolicy=BRepGraph_Copy::GeomPolicy::Copy, const BRepGraph_Copy::MeshPolicy theMeshPolicy=BRepGraph_Copy::MeshPolicy::Drop) |
| Transform a single node sub-graph of any kind. Topology nodes are copied and transformed by baking the transform into their definitions. | |
| static bool | MoveRef (BRepGraph &theGraph, const BRepGraph_ChildRefId theRefId, const gp_Trsf &theTrsf) |
| 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. | |
| static bool | MoveRef (BRepGraph &theGraph, const BRepGraph_OccurrenceRefId theRefId, const gp_Trsf &theTrsf) |
| Apply an in-place location-only transform to an occurrence reference. Composes theTrsf into OccurrenceRef placement without copying any geometry. | |
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):
Mesh handling (MeshPolicy parameter):
|
delete |
|
static |
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.
| [in] | theGraph | the graph containing the reference |
| [in] | theRefId | child reference to move |
| [in] | theTrsf | the transformation to compose into the location |
|
static |
Apply an in-place location-only transform to an occurrence reference. Composes theTrsf into OccurrenceRef placement without copying any geometry.
|
static |
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.
| [in] | theSourceGraph | a pre-built BRepGraph (must not be empty) |
| [in,out] | theTargetGraph | destination graph (may already contain data) |
| [in] | theTrsf | the transformation to apply |
| [in] | theGeomPolicy | geometry handle policy (default: Copy) |
| [in] | theMeshPolicy | mesh data policy (default: Drop) |
|
static |
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.
| [in] | theSourceGraph | a pre-built BRepGraph |
| [in,out] | theTargetGraph | destination graph (may already contain data) |
| [in] | theNodeId | node identifier (any kind) |
| [in] | theTrsf | the transformation to apply |
| [in] | theGeomPolicy | geometry handle policy (default: Copy; Drop is invalid for topology) |
| [in] | theMeshPolicy | mesh data policy (default: Drop) |