I need to rotate and translate an object. I have a problem with that, I can only do one of them. I use this code:
RotateTransform3D myRotate = new RotateTransform3D(new AxisAngleRotation3D(new Vector3D(0, 0, 1), Convert.ToDouble(180)), new Point3D(0, 0, 0));
TranslateTransform3D myTranslate = new TranslateTransform3D(0, 0, 100);
ModelVisual3D device3D2 = new ModelVisual3D();
device3D2.Content = Display3d(MODEL_PATH2);
device3D2.Transform = myRotate;
device3D2.Transform = myTranslate;
viewPort3d.Children.Add(device3D2);
The problem is that it only does the last transform. I mean, if I apply "myRotate" the second one, it rotates the object, but it doesn't apply the "myTranslate" operation. I need to do both transforms.
I am using HelixToolkit too.