cone_to_threejs
- compas_notebook.conversions.cone_to_threejs(cone)
Convert a COMPAS cone to PyThreeJS.
- Parameters:
- cone
compas.geometry.Cone
The cone to convert.
- cone
- Returns:
three.CylinderGeometry
Examples
>>> from compas.geometry import Cone >>> cone = Cone(radius=1, height=2) >>> cone_to_threejs(cone) CylinderGeometry(...)