From e779c45679957c6e6032f943008d9dbb0ffb8c52 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 9 Apr 2004 15:55:07 +0000 Subject: [PATCH] Output a % done periodically. --- src/Prep/TGVPF/tgvpf.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Prep/TGVPF/tgvpf.cxx b/src/Prep/TGVPF/tgvpf.cxx index 413c642d..0a4092b7 100644 --- a/src/Prep/TGVPF/tgvpf.cxx +++ b/src/Prep/TGVPF/tgvpf.cxx @@ -466,8 +466,8 @@ main (int argc, const char **argv) TGPolygon mask; for (int i = 0; i < nTopologies; i++) { - if ((i % 1000) == 0) - cerr << i << "..." << endl; + if ((i % 10) == 0) + cerr << (double)i * 100.0 / (double)nTopologies << "% done ..." << endl; if (feature.isTiled()) { VpfRectangle rect = feature.getTile(i).getBoundingRectangle(); if (!bounds.isOverlapping(vpf2tg(rect))) @@ -532,8 +532,8 @@ main (int argc, const char **argv) } else { shape = tgPolygonInt(shape, bounds_poly); if (shape.total_size() >= 3) { - cout << "Polygon with " << shape.total_size() << " points in " - << shape.contours() << " contour(s)" << endl; + // cout << "Polygon with " << shape.total_size() << " points in " + // << shape.contours() << " contour(s)" << endl; if ( max_segment > 1.0 ) { shape = tgPolygonSplitLongEdges( shape, max_segment ); }