Oriented Bounding Box from gltf

Hi guys,

is there a way to compute the OBB from a loaded gltf model ? I was looking at three.js/webgl_math_obb.html at 0c26bb4bb8220126447c8373154ac045588441de · mrdoob/three.js · GitHub but it is not exactly what I am trying to do, as the loaded model can come in any arbitrary orientation, plus the example “manually” rotates boxes and then calculates the respective OBB’s from them .

I am not sure if there is a way to compute the OOB from the loaded gltf’s BufferGeometry ?

Any tips would be great.

Thank you.

It is not yet possible to compute the best fitted OBB from a given object. For now, it’s best if you setup the OBB from object’s AABB via fromBox3() . More information here: