Skip to content

Additional shapes to decorate MeshCat scenes (frames, text, ...)

License

Notifications You must be signed in to change notification settings

stephane-caron/meshcat-shapes

Repository files navigation

meshcat-shapes

Build Documentation Coverage Conda version PyPI version

Additional shapes to decorate MeshCat scenes (frames, text, ...).

Installation

From conda-forge

conda install -c conda-forge qpsolvers

From PyPI

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")

About

Additional shapes to decorate MeshCat scenes (frames, text, ...)

Resources

License

Stars

Watchers

Forks

Languages