cylinder_to_compas
- compas_occ.conversions.cylinder_to_compas(cylinder, cls=None)
- Convert an OCC cylinder to a COMPAS cylinder. - Parameters:
- cylindergp_Cylinder
- The OCC cylinder. 
- clsType[Cylinder], optional
- The type of COMPAS cylinder. 
 
- cylinder
- Returns:
 - See also - compas_sphere_from_occ_sphere()
 - Examples - >>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax3, gp_Cylinder >>> from compas_occ.conversions import cylinder_to_compas >>> ax3 = gp_Ax3(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1), gp_Dir(1, 0, 0)) >>> cylinder = gp_Cylinder(ax3, 1) >>> cylinder_to_compas(cylinder) Cylinder(radius=1.0, height=1.0, frame=Frame(...))