diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-21 12:43:52 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-21 12:43:52 (GMT) |
commit | 1f08d77f548ed12186523e8e47f62441730ef985 (patch) | |
tree | b9190fb4773899404c7f51692a9478ab06914aef /openscad.cc | |
parent | e24a87b8a37b8f71be30d99251908a5d80bb8bc7 (diff) |
Clifford Wolf:
CSG Evaluation now functional
git-svn-id: http://svn.clifford.at/openscad/trunk@7 b57f626f-c46c-0410-a088-ec61d464b74c
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"); |