global_to_cs#

Modeler3D.global_to_cs(point: list, coordinate_system: str | CoordinateSystem) list#

Transform a point from the global coordinate system to another coordinate system.

Parameters:
pointlist

List of the [x, y, z] coordinates to transform.

coordinate_systemstr, CoordinateSystem

Name of the destination reference system. The CoordinateSystem object can also be used.

Returns:
list

List of the transformed [x, y, z] coordinates.

Examples

>>> from ansys.aedt.core.modeler.cad.primitives import GeometryModeler
>>> obj = GeometryModeler()
>>> obj.global_to_cs(point=[1, 0, 0], coordinate_system="Global")