sphere_to_threejs
- compas_notebook.conversions.sphere_to_threejs(sphere)
Convert a COMPAS sphere to PyThreeJS.
- Parameters:
- sphere
compas.geometry.Sphere
The sphere to convert.
- sphere
- Returns:
three.SphereGeometry
Examples
>>> from compas.geometry import Sphere >>> sphere = Sphere(radius=1) >>> sphere_to_threejs(sphere) SphereGeometry(...)