TransformationsHelperGetModelTotalTransform Method (Model3D, Model3D, Boolean)
public static Transform3D GetModelTotalTransform( Model3D rootModel, Model3D finalModel, bool addFinalModelTransformation )
GetModelTotalTransform returns a Transform3D that contains all the transformations from the rootModel to the finalModel.
If no transformation is found, then null is returned.
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.