invert_cs#

Modeler3D.invert_cs(coordinate_system, to_global=False)[source]#

Get the inverse translation and the conjugate quaternion of the input coordinate system.

By defining a new coordinate system with this information, the reference coordinate system of the input coordinate system is obtained.

Parameters:
coordinate_systemstr, CoordinateSystem

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

to_globalbool, optional

Whether to compute the inverse transformation of the input coordinate system with respect to the global coordinate system. The default is False.

Returns:
list

Origin coordinates.

list

Quaternion.