viser icon indicating copy to clipboard operation
viser copied to clipboard

how to draw an arrow in the scene

Open wangmiaowei opened this issue 1 year ago • 1 comments

Thanks for your great work, I have a question here is how can I draw an arrow on the scene defined by me?

wangmiaowei avatar Jul 25 '24 20:07 wangmiaowei

Hello!

If you can create the arrow as a mesh, we do support adding meshes:

  • https://viser.studio/latest/scene_api/#viser.SceneApi.add_mesh_simple
  • https://viser.studio/latest/scene_api/#viser.SceneApi.add_mesh_trimesh

You can also add a spline, although the head of the arrow will require some manual effort on your end:

  • https://viser.studio/latest/scene_api/#viser.SceneApi.add_spline_catmull_rom

brentyi avatar Jul 30 '24 00:07 brentyi