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