double MSDM2_Component::getMaxDim(PolyhedronPtr polyhedron_ptr) { polyhedron_ptr->compute_bounding_box(); double max=polyhedron_ptr->xmax()-polyhedron_ptr->xmin(); if(polyhedron_ptr->ymax()-polyhedron_ptr->ymin()>max) max = polyhedron_ptr->ymax()-polyhedron_ptr->ymin(); if(polyhedron_ptr->zmax()-polyhedron_ptr->zmin()>max) max = polyhedron_ptr->zmax()-polyhedron_ptr->zmin(); return max; }