title: Creating OOBB from points
body: <p>How can I create minimal OOBB for given points? Creating AABB or sphere is very easy, but I have problems creating minimal OOBB.</p>
  
  <p>[edit]</p>
  
  <p>First answer didn't get me good results. I don't have huge cloud of points. I have little amount of points. I am doing collision geometry generation. For example, cube has 36 points (6 sides, 2 triangles each, 3 points for each triangle). And algorithm from first post gave bad results for cube. Example points for cube: <a href="http://nopaste.dk/download/3382" rel="noreferrer">http://nopaste.dk/download/3382</a> (should return identity axis)</p>