compas_cylinder_to_occ_cylinder
- compas_occ.conversions.compas_cylinder_to_occ_cylinder(cylinder: compas.geometry.shapes.cylinder.Cylinder) OCC.Core.gp.gp_Cylinder
Convert a COMPAS cylinder to an OCC cylinder.
- Parameters
- cylinder
compas.geometry.Cylinder
The COMPAS cylinder.
- cylinder
- Returns
gp_Cylinder
Examples
>>> from compas.geometry import Cylinder >>> from compas_occ.conversions import compas_cylinder_to_occ_cylinder >>> cylinder = Cylinder(1, 1) >>> compas_cylinder_to_occ_cylinder(cylinder) <class 'gp_Cylinder'>