cone_to_threejs

compas_notebook.conversions.cone_to_threejs(cone)

Convert a COMPAS cone to PyThreeJS.

Parameters:
conecompas.geometry.Cone

The cone to convert.

Returns:
three.CylinderGeometry

Examples

>>> from compas.geometry import Cone
>>> cone = Cone(radius=1, height=2)
>>> cone_to_threejs(cone)  
CylinderGeometry(...)