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
- cone
compas.geometry.Cone
The COMPAS cone.
- cone
- Returns
gp_Cone
See also
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'>