#include "config.h" #ifdef CGAL_POLYHEDRON_DEMO_USE_NEF #include "Scene.h" #include "Nef_type.h" Nef_polyhedron* Scene::new_nef_polyhedron() { return new Nef_polyhedron; } Nef_polyhedron* Scene::copy_nef_polyhedron(Nef_polyhedron* poly) { return new Nef_polyhedron(*poly); } void Scene::destroy_nef_polyhedron(Nef_polyhedron* poly) { delete poly; } QString Scene::nefPolyhedronToolTip(int index) const { Nef_polyhedron* poly = nefPolyhedron(index); if(!poly) return QString(); return tr("
%1 (mode: %5, color: %6)
"
"Nef_3 polyhedron
Number of vertices: %2
"
"Number of edges: %3
"
"Number of facets: %4
"
"number of volumes: %7