bool Various_Tools_Component::subdivide_quad(PolyhedronPtr pMesh) { CSubdivider_quad_triangle<Polyhedron,Enriched_kernel> subdivider; Polyhedron* new_mesh = new Polyhedron; subdivider.subdivide(*pMesh, *new_mesh, true); // copy bounding box (approximate, but fast) //new_mesh->copy_bounding_box(polyhedron); pMesh->copy_from(new_mesh); delete new_mesh; /*polyhedron->compute_normals(); polyhedron->compute_type();*/ // dej?fait lors de la copie return true; }