diff options
author | bubnikv <bubnikv@gmail.com> | 2016-11-02 12:47:00 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-11-02 12:47:00 +0300 |
commit | 95ede7c4b8cc40fe0fcf1960f25dfa9c66843b29 (patch) | |
tree | 609d320018e09d27f4b945915572d0fdf6e8c906 /xs/src/libslic3r/Geometry.cpp | |
parent | 3a31d37d3574093565ed4fc8baa7f90428d9324e (diff) |
Rewrote Fill2.pm to C++, deleted Perl infills for good.
Removed dependency on Perl Math::PlanePath module.
Fixed compilation with Visual Studio and SLIC3R_DEBUG: Visual Studio older than 2015 does not support the prinf type specifier %zu. Use %Iu instead.
C++11 move semantics enabled.
Diffstat (limited to 'xs/src/libslic3r/Geometry.cpp')
-rw-r--r-- | xs/src/libslic3r/Geometry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/Geometry.cpp b/xs/src/libslic3r/Geometry.cpp index 8a36e12cd..15b68e96a 100644 --- a/xs/src/libslic3r/Geometry.cpp +++ b/xs/src/libslic3r/Geometry.cpp @@ -372,7 +372,7 @@ Pointfs arrange(size_t num_parts, const Pointf &part_size, coordf_t gap, const B size_t cellw = size_t(floor((bed_bbox.size().x + gap) / cell_size.x)); size_t cellh = size_t(floor((bed_bbox.size().y + gap) / cell_size.y)); if (num_parts > cellw * cellh) - CONFESS("%zu parts won't fit in your print area!\n", num_parts); + CONFESS(PRINTF_ZU " parts won't fit in your print area!\n", num_parts); // Get a bounding box of cellw x cellh cells, centered at the center of the bed. Pointf cells_size(cellw * cell_size.x - gap, cellh * cell_size.y - gap); @@ -446,7 +446,7 @@ arrange(size_t total_parts, const Pointf &part_size, coordf_t dist, const Boundi size_t cellw = floor((area.x + dist) / part.x); size_t cellh = floor((area.y + dist) / part.y); if (total_parts > (cellw * cellh)) - CONFESS("%zu parts won't fit in your print area!\n", total_parts); + CONFESS(PRINTF_ZU " parts won't fit in your print area!\n", total_parts); // total space used by cells Pointf cells(cellw * part.x, cellh * part.y); |