diff options
author | bubnikv <bubnikv@gmail.com> | 2018-09-18 11:09:58 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-09-18 11:09:58 +0300 |
commit | 3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (patch) | |
tree | 97e9b632bdd5abc546d951771f144fe5b1d6ac73 /xs/src/libslic3r/ExPolygon.cpp | |
parent | 27bba453312d59898f773aa54d7b625e65fc501e (diff) |
Replaced CONFESS with throw std::exception in libslic3r, so now
libslic3r should be compilable without Perl.
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r-- | xs/src/libslic3r/ExPolygon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/ExPolygon.cpp b/xs/src/libslic3r/ExPolygon.cpp index 4294fe543..00bb4ffe4 100644 --- a/xs/src/libslic3r/ExPolygon.cpp +++ b/xs/src/libslic3r/ExPolygon.cpp @@ -437,7 +437,8 @@ ExPolygon::triangulate_pp(Polygons* polygons) const // perform triangulation std::list<TPPLPoly> output; int res = TPPLPartition().Triangulate_MONO(&input, &output); - if (res != 1) CONFESS("Triangulation failed"); + if (res != 1) + throw std::runtime_error("Triangulation failed"); // convert output polygons for (std::list<TPPLPoly>::iterator poly = output.begin(); poly != output.end(); ++poly) { |