ORIENTEDBOX3D Object-oriented bounding box of a set of 3D points.

   OOBB = orientedBox3d(PTS)

   Example
     [v, f] = sphereMesh;
     rotMat = eulerAnglesToRotation3d(30, 20, 10);
     pts = transformPoint3d(bsxfun(@times, v, [5 3 1]), rotMat);
     box3d = orientedBox3d(pts);
     figure; drawPoint3d(pts, '.'); hold on;
     axis equal; axis([-6 6 -6 6 -5 5]);
     h = drawCuboid(box3d);
     set(h, 'facecolor', 'none');

   See also
     meshes3d, drawCuboid

Package: matgeom