summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-04 17:48:39 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-04 17:48:39 (GMT)
commite886b3e87f189b6cdb75f9d2f2f0bc48e82c297b (patch)
treecc146afb749803adcea918d179185ac259886e82
parentb4d3de088d4bcc4f56bb5e6599bd7a953322e5cd (diff)
Clifford Wolf:
Added rendering statistics for top level 2d objects git-svn-id: http://svn.clifford.at/openscad/trunk@201 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--mainwin.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 8a35b8e..b88baa7 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -911,12 +911,28 @@ void MainWindow::actionRenderCGAL()
QApplication::processEvents();
if (root_N->dim == 2) {
- PRINTF(" Top level object is a 2D object.");
+ PRINTF(" Top level object is a 2D object:");
+ QApplication::processEvents();
PRINTF(" Empty: %6s", root_N->p2.is_empty() ? "yes" : "no");
+ QApplication::processEvents();
PRINTF(" Plane: %6s", root_N->p2.is_plane() ? "yes" : "no");
+ QApplication::processEvents();
+ PRINTF(" Vertices: %6d", (int)root_N->p2.explorer().number_of_vertices());
+ QApplication::processEvents();
+ PRINTF(" Halfedges: %6d", (int)root_N->p2.explorer().number_of_halfedges());
+ QApplication::processEvents();
+ PRINTF(" Edges: %6d", (int)root_N->p2.explorer().number_of_edges());
+ QApplication::processEvents();
+ PRINTF(" Faces: %6d", (int)root_N->p2.explorer().number_of_faces());
+ QApplication::processEvents();
+ PRINTF(" FaceCycles: %6d", (int)root_N->p2.explorer().number_of_face_cycles());
+ QApplication::processEvents();
+ PRINTF(" ConnComp: %6d", (int)root_N->p2.explorer().number_of_connected_components());
+ QApplication::processEvents();
}
if (root_N->dim == 3) {
+ PRINTF(" Top level object is a 3D object:");
PRINTF(" Simple: %6s", root_N->p3.is_simple() ? "yes" : "no");
QApplication::processEvents();
PRINTF(" Valid: %6s", root_N->p3.is_valid() ? "yes" : "no");
contact: Jan Huwald // Impressum