box_to_threejs
- compas_notebook.conversions.box_to_threejs(box)
Convert a COMPAS box to PyThreeJS.
- Parameters:
- box
compas.geometry.Box
The box to convert.
- box
- Returns:
three.BoxGeometry
Examples
>>> from compas.geometry import Box >>> box = Box.from_width_height_depth(1, 2, 3) >>> box_to_threejs(box) BoxGeometry(...)