cylinder_to_threejs

compas_notebook.conversions.cylinder_to_threejs(cylinder)

Convert a COMPAS cylinder to PyThreeJS.

Parameters:
cylindercompas.geometry.Cylinder

The cylinder to convert.

Returns:
three.CylinderGeometry

Examples

>>> from compas.geometry import Cylinder
>>> cylinder = Cylinder(radius=1, height=2)
>>> cylinder_to_threejs(cylinder)  
CylinderGeometry(...)