Imported Mesh has Inaccurate Bounding Box

Hey all,

The suggested algorithm for computing the bounding box seems to be giving me trouble with a mesh I’m trying to import. Here’s a sandbox of the issue:

Any ideas what the issue could be?

why not relying on getHierarchyBoundingVectors ? it is a built in function that could help here.

Amazing that did it! In case this helps anyone else here is a PG showcasing the good vs bad way of doing it. Fwiw the bounding box is off-center in the PG but it works fine on my machine. At the minimum you can tell that one is definitely the wrong size and another is a much tighter fit:

1 Like