Home My Page Projects Graphite
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
Geogram Mesh Minimal Bounding Box [ Reply ]
By: Jean-Bernard FRANCOIS on 2017-06-15 14:50
[forum:151427]
Hi,

I get the bounding box of my file as:
mesh_load(mesh1_filename, M1)
get_bbox(M1,&M1xyz_min[0],&M1xyz_max[0]);
//encombrement
double ex = M1xyz_max[0]-M1xyz_min[0];
double ey = M1xyz_max[1]-M1xyz_min[1];
double ez = M1xyz_max[2]-M1xyz_min[2];

I would like to get the minimal bounding box when the mesh is best oriented.
Is there any way to do this?

Thanks