box_to_threejs

compas_notebook.conversions.box_to_threejs(box)

Convert a COMPAS box to PyThreeJS.

Parameters:
boxcompas.geometry.Box

The box to convert.

Returns:
three.BoxGeometry

Examples

>>> from compas.geometry import Box
>>> box = Box.from_width_height_depth(1, 2, 3)
>>> box_to_threejs(box)  
BoxGeometry(...)