sphere_to_occ

compas_occ.conversions.sphere_to_occ(sphere)

Convert a COMPAS sphere to an OCC sphere.

Parameters:
spherecompas.geometry.Sphere

The COMPAS sphere.

Returns:
gp_Sphere

Examples

>>> from compas.geometry import Sphere
>>> from compas_occ.conversions import sphere_to_occ
>>> sphere = Sphere(1)
>>> sphere_to_occ(sphere)
<class 'gp_Sphere'>