compas_plane_to_occ_plane

compas_occ.conversions.compas_plane_to_occ_plane(plane: compas.geometry.plane.Plane) OCC.Core.gp.gp_Pln

Convert a COMPAS plane to an OCC plane.

Parameters
planecompas.geometry.Plane

The COMPAS plane.

Returns
gp_Pln

Examples

>>> from compas.geometry import Plane
>>> from compas_occ.conversions import compas_plane_to_occ_plane
>>> plane = Plane([0, 0, 0], [0, 0, 1])
>>> compas_plane_to_occ_plane(plane)
<class 'gp_Pln'>