diff options
Diffstat (limited to 'openscad.cc')
-rw-r--r-- | openscad.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openscad.cc b/openscad.cc index d4a411f..99d9056 100644 --- a/openscad.cc +++ b/openscad.cc @@ -27,6 +27,11 @@ #include <fstream> #include <iostream> +void report_func(const class AbstractNode*, void*, int mark) +{ + printf("CSG rendering progress: %.2f%%\n", (mark*100.0) / progress_report_count); +} + int main() { int rc = 0; @@ -52,7 +57,12 @@ int main() CGAL_Nef_polyhedron N; CGAL_Polyhedron P; + + progress_report_prep(root_node, report_func, NULL); N = root_node->render_cgal_nef_polyhedron(); + progress_report_fin(); + printf("CSG rendering finished.\n"); + N.convert_to_Polyhedron(P); std::ofstream outFile("output.off"); |