diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-04 04:06:56 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-04 04:06:56 (GMT) |
commit | 70026aa0b8dd2e918c17a5783ea1c02dd1d1e01b (patch) | |
tree | fa97b97fae513cfbe607489d04a353ddb37592ad /src/CGALEvaluator.cc | |
parent | 56a8be7f24b8b98efd27a8dcd2782e658fb46f80 (diff) |
bugfix: real geometry with bugs should evaluate with a dimension
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r-- | src/CGALEvaluator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 20c5d5e..37d4fd8 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -708,7 +708,7 @@ CGAL_Nef_polyhedron CGALEvaluator::evaluateCGALMesh(const PolySet &ps) PRINTB("Alternate construction failed. CGAL error in CGAL_Nef_polyhedron3(): %s", e.what()); } CGAL::set_error_behaviour(old_behaviour); - return CGAL_Nef_polyhedron(N); + if (N) return CGAL_Nef_polyhedron(N); } - return CGAL_Nef_polyhedron(); + return CGAL_Nef_polyhedron(ps.is2d?2:3); } |