compas_plane_from_occ_plane
- compas_occ.conversions.compas_plane_from_occ_plane(pln: OCC.Core.gp.gp_Pln, cls: Optional[Type[compas.geometry.plane.Plane]] = None) compas.geometry.plane.Plane
Convert an OCC plane to a COMPAS plane.
See also
Examples
>>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Pln >>> from compas_occ.conversions import compas_plane_from_occ_plane >>> plane = gp_Pln(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1)) >>> compas_plane_from_occ_plane(plane) Plane(point=Point(0.0, 0.0, z=0.0), normal=Vector(x=0.0, y=0.0, z=1.0))