plane_to_compas
- compas_occ.conversions.plane_to_compas(pln, cls=None)
- Convert an OCC plane to a COMPAS plane. - Parameters:
- plngp_Pln
- The OCC plane. 
- clsType[Plane], optional
- The type of COMPAS plane. 
 
- pln
- Returns:
 - See also - Examples - >>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Pln >>> from compas_occ.conversions import plane_to_compas >>> plane = gp_Pln(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1)) >>> plane_to_compas(plane) Plane(point=Point(x=0.0, y=0.0, z=0.0), normal=Vector(x=0.0, y=0.0, z=1.0))