SceneSet |
public void SetCoordinateSystem( CoordinateSystems coordinateSystem )
SetCoordinateSystem method can be used to change the coordinate system from the default y-up right handed coordinate system (x to the right, z out of the screen) to some other coordinate system, for example to ZUpRightHanded that is usually used for CAD applications.
Behind the scenes, this method sets the RootNode Transform property. When the default YUpRightHanded is used, then the Transform is null. When any other coordinate system is used, then a MatrixTransform is set to the RootNode.Transform property. The MatrixTransform converts all the positions in the Scene from the selected coordinate system to YUpRightHanded that is internally used by the Ab4d.SharpEngine. Note that it is not allowed to manually change the RootNode's transformation. If you want to apply a custom global transformation, create another GroupNode, set Transform property and add the new GroupNode to the RootNode. Then add your objects to that GroupNode.