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-11-04 17:03:51 +0300
committerbubnikv <bubnikv@gmail.com>2016-11-04 17:03:51 +0300
commit6217622865eac20a00b0a1a55dfddd2dffd51ceb (patch)
tree48e83b41785a5db90105645f9b2b1b357414f9b6 /xs/src/libslic3r/Geometry.hpp
parent3fc57ba8d85bef0ea6419cffe884e3ee151531ba (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.hpp6
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: