sphere_to_threejs

compas_notebook.conversions.sphere_to_threejs(sphere)

Convert a COMPAS sphere to PyThreeJS.

Parameters:
spherecompas.geometry.Sphere

The sphere to convert.

Returns:
three.SphereGeometry

Examples

>>> from compas.geometry import Sphere
>>> sphere = Sphere(radius=1)
>>> sphere_to_threejs(sphere)  
SphereGeometry(...)