Is there an element aligned bounding box?

Does anyone know if there is an element aligned bounding box? I’m trying to find the cuboid of best fit through an elements geometry, but I wanted to check if someone has already solved this in a package somewhere.

edit: nvm, it wasn’t as complicated as I thought. here is a quick solution I came up with, it’ll find a best fit cuboid based on a line and geo. Someone one should probably package this somewhere, wouldn’t be too hard to convert this to a best fit cuboid by vector as well.

2 Likes
1 Like