Get Rotation Values of Childgeometry
#5
Thank you very much for the methods.
Unfortunately I haven't got it to work, with the functions. Maybe I missed something there.

But I found another possibility which has the same idea you have posted with the Matrix3D.Invert().

What I did is:

Code:
GeneralTransform3D generalTransform = <ModelVisual3DObject>.TransformToAncestor(<RootModelVisual3D>);
           
if (generalTransform is MatrixTransform3D)
{
     _matrix3D = ((MatrixTransform3D)generalTransform ).Value;
     _matrix3D.OffsetX = 0;
     _matrix3D.OffsetY = 0;
     _matrix3D.OffsetZ = 0;
     _matrix3D.Invert();
}

<ModelVisual3DObject>.Transform = new MatrixTransform3D(_matrix3D);
  


Messages In This Thread
RE: Get Rotation Values of Childgeometry - by nherrmann - 02-14-2018, 04:45 PM

Forum Jump:


Users browsing this thread:
2 Guest(s)