I am calculating the convex hull points array from a 3D model projecting it into a plane. From this convex hull I am calculating the minimum area rectangle enclosing the convex hill. This minimum area rectangle is used to get 2D bounding box for the convex hull. Then I am translating the four points of minimum area rectangle to obtain coordinates of 3D bounding box. But the problem is the direction from which I am obtaining the convex hull is not proper because of which resulting 3D bounding box is not optimum.

Is there any algorithm to obtain the direction for calculating proper convex hull?

Similar questions and discussions