axis_to_compas
- compas_occ.conversions.axis_to_compas(axis)
Convert an OCC axis to a tuple of COMPAS point and vector.
See also
Examples
>>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax1 >>> from compas_occ.conversions import axis_to_compas >>> axis = gp_Ax1(gp_Pnt(0, 0, 0), gp_Dir(1, 0, 0)) >>> axis_to_compas(axis) (Point(x=0.0, y=0.0, z=0.0), Vector(x=1.0, y=0.0, z=0.0))