Skip to content

COMPAS ThreeJS¤

COMPAS ThreeJS is a browser-based viewer for COMPAS geometry. It combines a Python API for building interactive scenes with a Three.js frontend for rendering and user interaction.

COMPAS ThreeJS architecture COMPAS ThreeJS architecture

How it works¤

The Python backend sends geometry and scene commands to the frontend, where Three.js builds and renders the 3D scene. User interactions such as picking and UI actions travel back to Python as callbacks, allowing scripts and the browser to participate in the same live workflow.

COMPAS Protobuf communication COMPAS Protobuf communication

COMPAS Protobuf serializes the messages exchanged through a FastAPI WebSocket server. The same frontend can also run as an embedded TypeScript library without the Python server.

Continue with installation, or see the remote-viewer guide to connect from another Python process.