Click or drag to resize
Ab4d.SharpEngine logo

SceneSetCoordinateSystem Method

SetCoordinateSystem method can be used to change the coordinate system from the default YUpRightHanded coordinate system (y up, 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.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public void SetCoordinateSystem(
	CoordinateSystems coordinateSystem
)

Parameters

coordinateSystem  CoordinateSystems
new CoordinateSystems
Remarks

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.

See Also