A wrapper for trimesh that simplifies visualization.
- Install the requirements by running
pip install -r requirements.txt
- Install the package with pip
pip install .
-
Import the package and create a "Scene"
from trimeshVisualize import Scene scene = Scene()
-
Add objects, points, vectors, points clouds, ... to the scene
- Colors are specified as [R, G, B, transparency]
scene.plot_mesh(mesh, color = [255, 0, 0, 255], id = "obj_1")
-
Remove objects from the scene
scene.remove_feature("obj_1")
-
Plot the scene
_ = scene.display()