frame_to_occ_ax2

compas_occ.conversions.frame_to_occ_ax2(frame)

Convert a COMPAS frame to a right-handed OCC coordinate system.

Parameters:
framecompas.geometry.Frame

The COMPAS frame.

Returns:
gp_Ax2

Examples

>>> from compas.geometry import Frame
>>> from compas_occ.conversions import frame_to_occ_ax2
>>> frame = Frame.worldXY()
>>> frame_to_occ_ax2(frame)
<class 'gp_Ax2'>