nmwsharp / polyscope

A C++ & Python viewer for 3D data like meshes and point clouds
https://polyscope.run
MIT License
1.83k stars 203 forks source link

Add scene bounding box #268

Closed jdumas closed 7 months ago

jdumas commented 7 months ago

Hi. It would be great to be able to set the ground position and center based on a specified (fixed) bounding box rather than dynamically updating it based on the scene bbox at every frame.

It's esp. important when running physics simulation, as otherwise the floor bounces around like so:

https://github.com/nmwsharp/polyscope/assets/578702/1fc7e5d4-114f-4b61-81ed-1ca9d9a35d4f

jdumas commented 7 months ago

Ok nvm it seems it's already possible by setting automaticallyComputeSceneExtents to false and updating state::boundingBox manually. Spoke too fast!