compas_plane_to_occ_ax2
- compas_occ.conversions.compas_plane_to_occ_ax2(plane: compas.geometry.plane.Plane) OCC.Core.gp.gp_Ax2
Convert a COMPAS plane to a right-handed OCC coordinate system.
- Parameters
- plane
compas.geometry.Plane
The COMPAS plane.
- plane
- Returns
gp_Ax2
Examples
>>> from compas.geometry import Plane >>> from compas_occ.conversions import compas_plane_to_occ_ax2 >>> plane = Plane([0, 0, 0], [0, 0, 1]) >>> compas_plane_to_occ_ax2(plane) <class 'gp_Ax2'>