Getting an on-screen bounding box for an object in Blender
For calculating simplified interactions between objects, bounding boxes are typically used—parallelepipeds whose volume completely encloses the entire mesh geometry. Because such a box has and uses only six points for calculations, unlike the mesh itself, which can have millions of points, all calculations are very fast. Every object has a built-in bounding box, and its display can be enabled in the mesh's parameters. This bounding box operates in 3D scene space, but there could be some cases when we need to control object interactions in 2D screen space. There are no pre-calculated bounding boxes for the viewport, but we can get one ourselves using the Blender Python API.

Read more: https://b3d.interplanety.org/en/getting-an-on-screen-bounding-box-for-an-object-in-blender/
#blender, #b3d
Комментарии
Отправить комментарий