cylinder_to_occ

compas_occ.conversions.cylinder_to_occ(cylinder)

Convert a COMPAS cylinder to an OCC cylinder.

Parameters:
cylindercompas.geometry.Cylinder

The COMPAS cylinder.

Returns:
gp_Cylinder

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'>