Skip to main content

Useful shapes to decorate MeshCat scenes.

Project description

meshcat-shapes

Build Documentation Coverage Conda version PyPI version

Additional shapes to decorate MeshCat scenes:

meshcat_shapes.frame meshcat_shapes.point meshcat_shapes.textarea

PRs are welcome: open one if you have implemented a shape that can be useful to others.

Installation

From conda-forge

conda install -c conda-forge meshcat-shapes

From PyPI

pip install meshcat-shapes

Usage

import meshcat
import meshcat_shapes

vis = meshcat.Visualizer().open()

meshcat_shapes.frame(
    vis["my_frame"],
    axis_length=0.2,
    axis_thickness=0.01,
    opacity=0.8,
    origin_radius=0.02,
)

meshcat_shapes.point(
    vis["red_point"],
    opacity=0.3,
    radius=0.05,
    color=0xFF0000,
)

meshcat_shapes.textarea(vis["text"], "super easy")

Project details


Download files

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

Source Distribution

meshcat_shapes-1.0.0.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

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

meshcat_shapes-1.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file meshcat_shapes-1.0.0.tar.gz.

File metadata

  • Download URL: meshcat_shapes-1.0.0.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for meshcat_shapes-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e47169ac70321be8eaaa6b8cc2a1c7cdfec44a640fcd3be9399bb053e750aa7e
MD5 4835c37946fb8666c37f8c93ec3e1cc7
BLAKE2b-256 3b77ff136ac896a26cfbe525427acccf46816bb6bc68ea3737c380ab9b947a7f

See more details on using hashes here.

File details

Details for the file meshcat_shapes-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for meshcat_shapes-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6031c2000041a8deb1b20f59d89cb1db7787fa711840332af04fba119abcd060
MD5 69d805070b534a3c01d68d2bf1872371
BLAKE2b-256 df440cd8c05ac2ad016c3d751090bf22e63748e9446122ea36551e3f857c05ab

See more details on using hashes here.

Supported by

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