diff options
author | bubnikv <bubnikv@gmail.com> | 2016-11-04 17:03:51 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-11-04 17:03:51 +0300 |
commit | 6217622865eac20a00b0a1a55dfddd2dffd51ceb (patch) | |
tree | 48e83b41785a5db90105645f9b2b1b357414f9b6 /xs/src/libslic3r/Geometry.hpp | |
parent | 3fc57ba8d85bef0ea6419cffe884e3ee151531ba (diff) |
Hopefully a fix of https://github.com/prusa3d/Slic3r/issues/11
Replaced eval { die } construct with a bool return value indicating
success or failure of an automatic arrangement of parts on the print bed.
Don't know exactly what is happening here, but throwing a "die" inside
a XS function and then catching it inside an eval {} block is suspcious.
Diffstat (limited to 'xs/src/libslic3r/Geometry.hpp')
-rw-r--r-- | xs/src/libslic3r/Geometry.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Geometry.hpp b/xs/src/libslic3r/Geometry.hpp index 2c05c1e38..30582fdfd 100644 --- a/xs/src/libslic3r/Geometry.hpp +++ b/xs/src/libslic3r/Geometry.hpp @@ -26,7 +26,11 @@ double deg2rad(double angle); void simplify_polygons(const Polygons &polygons, double tolerance, Polygons* retval); double linint(double value, double oldmin, double oldmax, double newmin, double newmax); -Pointfs arrange(size_t num_parts, const Pointf &part_size, coordf_t gap, const BoundingBoxf* bed_bounding_box); +bool arrange( + // input + size_t num_parts, const Pointf &part_size, coordf_t gap, const BoundingBoxf* bed_bounding_box, + // output + Pointfs &positions); class MedialAxis { public: |