compas_cone_to_occ_cone

compas_occ.conversions.compas_cone_to_occ_cone(cone: compas.geometry.shapes.cone.Cone) OCC.Core.gp.gp_Cone

Convert a COMPAS cone to an OCC cone.

Parameters
conecompas.geometry.Cone

The COMPAS cone.

Returns
gp_Cone

Examples

>>> from compas.geometry import Cone
>>> from compas_occ.conversions import compas_cone_to_occ_cone
>>> cone = Cone(1, 1)
>>> compas_cone_to_occ_cone(cone)
<class 'gp_Cone'>