Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-10-20 14:04:23 +0300
committerbubnikv <bubnikv@gmail.com>2016-10-20 14:04:23 +0300
commitf788f50b5a7e1457cadf7a2cde82d93cf085652d (patch)
treee0fc2f70266a94ce33581ff3fbeb8a9214b99e2d /xs/src/libslic3r/ExPolygon.hpp
parent53907a9cfee63abf99940bbffe5f1785d151e843 (diff)
Disabled asserts in the release build (-DNDEBUG).
Added a safe variant of offset(const Slic3r::ExPolygon...), which offsets each loop separately. New functions "remove_sticks" to remove zero area parts of polygons. New functions "remove_small" and "remove_degenerate" for polygon clean up. Extended the C++ supports, those are not finalized yet though.
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.hpp')
-rw-r--r--xs/src/libslic3r/ExPolygon.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygon.hpp b/xs/src/libslic3r/ExPolygon.hpp
index ef3c153dc..8265b3b0f 100644
--- a/xs/src/libslic3r/ExPolygon.hpp
+++ b/xs/src/libslic3r/ExPolygon.hpp
@@ -86,6 +86,8 @@ inline Polygons to_polygons(ExPolygons &&src)
extern BoundingBox get_extents(const ExPolygon &expolygon);
extern BoundingBox get_extents(const ExPolygons &expolygons);
+extern bool remove_sticks(ExPolygon &poly);
+
} // namespace Slic3r
// start Boost