diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-04 21:20:50 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-04 21:20:50 (GMT) |
commit | 59b0d164889aedcda06bc7e5fcc87912c105dc24 (patch) | |
tree | ce86682840b1531247d09d9ed6e07595771ffb3b | |
parent | c9ba59bf02debd1c6409c1ac5a75a951f18a14a0 (diff) |
bugfix: Don't try to export empty polyhedrons
-rw-r--r-- | tests/cgaltest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/cgaltest.cc b/tests/cgaltest.cc index f2fc169..a882638 100644 --- a/tests/cgaltest.cc +++ b/tests/cgaltest.cc @@ -170,9 +170,10 @@ int main(int argc, char **argv) CGAL_Nef_polyhedron N = cgalevaluator.evaluateCGALMesh(*root_node); QDir::setCurrent(original_path.absolutePath()); - QTextStream outstream(stdout); - export_stl(&N, outstream, NULL); - + if (!N.empty()) { + QTextStream outstream(stdout); + export_stl(&N, outstream, NULL); + } destroy_builtin_functions(); destroy_builtin_modules(); |