invert_cs#
- Modeler3D.invert_cs(coordinate_system: str | CoordinateSystem, to_global: bool = False) tuple[list, Quaternion]#
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:
- Returns:
tupleList of the
[x, y, z]coordinates of the origin and the quaternion defining the coordinate system.
Examples
>>> from ansys.aedt.core.modeler.cad.primitives import GeometryModeler >>> obj = GeometryModeler() >>> obj.invert_cs(coordinate_system="Global")