compas_threejs is a browser-based 3D viewer for COMPAS geometry. The Python
package serves a bundled Three.js frontend and exchanges geometry, scene, and
interaction messages through COMPAS Protobuf and WebSockets.
pip install compas_threejsfrom compas.geometry import Box
from compas_threejs.viewer import App
viewer = App()
viewer.add_geometry(Box(2, 3, 1))
viewer.start(show=True)The viewer runs until interrupted with Ctrl+C.
MIT, copyright COMPAS Association. See LICENSE.