Skip to main content

COMPAS ThreeJS

PyPI version Python versions License MIT Build Status Documentation Made with COMPAS

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.

Installation

pip install compas_threejs

Quick start

from 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.

Related projects

License

MIT, copyright COMPAS Association. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compas_threejs-1.0.1.tar.gz (320.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compas_threejs-1.0.1-py3-none-any.whl (331.1 kB view details)

Uploaded Python 3

File details

Details for the file compas_threejs-1.0.1.tar.gz.

File metadata

  • Download URL: compas_threejs-1.0.1.tar.gz
  • Upload date:
  • Size: 320.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for compas_threejs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b388ecf74bccecceaf1b69549000fd5ab73b5143167665491ee76afee6817605
MD5 b5ae6c7f8fa93c2b760909df2d33854e
BLAKE2b-256 c6ca58c95000294bd9d033443e25c30a0bbb28a421bd443eb1c63436d6d6946b

See more details on using hashes here.

Provenance

The following attestation bundles were made for compas_threejs-1.0.1.tar.gz:

Publisher: release.yml on compas-dev/compas_threejs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compas_threejs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: compas_threejs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 331.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for compas_threejs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3ba05c801b5353fbb6fe261083bcf6ad09ee90ba72ef276eb86cc83315411d
MD5 e0ac03dd58d00a2f73aa539e0105ddc2
BLAKE2b-256 ea1af52f9d0559c26d5bf02359fb65b994d64f04bbbd527d1b9cebe8ca9b92ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for compas_threejs-1.0.1-py3-none-any.whl:

Publisher: release.yml on compas-dev/compas_threejs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page