Skip to main content

Useful shapes to decorate MeshCat scenes.

Project description

meshcat-shapes

Build Coverage PyPI version Contributing

Useful shapes to decorate MeshCat scenes.

Installation

pip install meshcat-shapes

Shapes

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.

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-0.3.0.tar.gz (45.1 kB view hashes)

Uploaded Source

Built Distribution

meshcat_shapes-0.3.0-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

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