added code to convert the mesh to a cgal polyhedron