|
TransformationsHelperGetModelTotalTransform(Model3D, Model3D, Boolean, Transform3D) Method |
GetModelTotalTransform returns true when the specified finalModel can be reached from the rootModel.
In this case the totalTransform3D out parameter is set to the a Transform3D that contains all the transformations from the rootModel to the finalModel.
If no transformation is found, then totalTransform3D is set to null.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static bool GetModelTotalTransform(
Model3D rootModel,
Model3D finalModel,
bool addFinalModelTransformation,
out Transform3D totalTransform
)
Parameters
- rootModel Model3D
- The Model3D object that is the root of the hierarchy where the finalModel is
- finalModel Model3D
- The Model3D object for witch the Transform3D is created
- addFinalModelTransformation Boolean
- if true then the returned Transform3D also contains the transform of the finalModel
- totalTransform Transform3D
- Transform3D or null if no transformation is found
Return Value
Booleanfalse if the finalModel is not found under rootModel
Remarks GetModelTotalTransform returns true when the specified finalModel can be reached from the rootModel.
In this case the totalTransform3D out parameter is set to the a Transform3D that contains all the transformations from the rootModel to the finalModel.
If no transformation is found, then totalTransform3D is set to null.
GetModelTotalTransform can be used when we want to get the transformation of a Model3D that is inside a hierarchy of objects - for example when
we are showing selection lines of an object, the lines are not drawn in a separate Visual3D object and therefore we need to get the total transformation of the child Model3D.
See Also