How do we find the oriented bounding box in three.js after computing convex hull?
In the following image: Green represents convex hull (I am displaying it as mesh for visualization), white is AABB.
I am aware that there are no in-built methods available in three.js. I tried OBB.js from threejs examples but that didn't work for me. The convex hull algorithm looks promising. Any pointers on what the next steps are will be very helpful.
From what I understand, I need to calculate covariance matrix of set of vertices that form the convex hull's boundary (and exclude other internal vertices). How do I get those vertices?