diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-27 00:07:55 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-27 00:07:55 (GMT) |
commit | aebe4a622ab15b869a5b89822bbb59af2493b44f (patch) | |
tree | 21f9f653bc1070811b9aef0301314fb933078fdb | |
parent | 9479f8e77ba5af4778b1efe417f6c4452811d459 (diff) |
Clifford Wolf:
Added CGAL statistics
git-svn-id: http://svn.clifford.at/openscad/trunk@30 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r-- | mainwin.cc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -328,6 +328,24 @@ void MainWindow::actionRenderCGAL() root_N = new CGAL_Nef_polyhedron(root_node->render_cgal_nef_polyhedron()); progress_report_fin(); + QString msg; + msg.sprintf("Simple: %6s", root_N->is_simple() ? "yes" : "no"); + console->append(msg); + msg.sprintf("Valid: %6s", root_N->is_valid() ? "yes" : "no"); + console->append(msg); + msg.sprintf("Vertices: %6d", (int)root_N->number_of_vertices()); + console->append(msg); + msg.sprintf("Halfedges: %6d", (int)root_N->number_of_halfedges()); + console->append(msg); + msg.sprintf("Edges: %6d", (int)root_N->number_of_edges()); + console->append(msg); + msg.sprintf("Halffacets: %6d", (int)root_N->number_of_halffacets()); + console->append(msg); + msg.sprintf("Facets: %6d", (int)root_N->number_of_facets()); + console->append(msg); + msg.sprintf("Volumes: %6d", (int)root_N->number_of_volumes()); + console->append(msg); + if (!actViewModeCGALSurface->isChecked() && !actViewModeCGALGrid->isChecked()) { viewModeCGALSurface(); } else { |