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