compas_sphere_to_occ_sphere
- compas_occ.conversions.compas_sphere_to_occ_sphere(sphere: compas.geometry.shapes.sphere.Sphere) OCC.Core.gp.gp_Sphere
Convert a COMPAS sphere to an OCC sphere.
- Parameters
- sphere
compas.geometry.Sphere
The COMPAS sphere.
- sphere
- Returns
gp_Sphere
Examples
>>> from compas.geometry import Sphere >>> from compas_occ.conversions import compas_sphere_to_occ_sphere >>> sphere = Sphere(1) >>> compas_sphere_to_occ_sphere(sphere) <class 'gp_Sphere'>