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