Ported _arrange() and arrange_object() to XS

This commit is contained in:
Alessandro Ranellucci 2015-12-01 21:51:16 +01:00
parent 5655f786f4
commit dfce3a3138
5 changed files with 47 additions and 45 deletions

View file

@ -186,7 +186,6 @@ arrange(size_t total_parts, Pointf part, coordf_t dist, const BoundingBoxf &bb)
// this is how many cells we have available into which to put parts
size_t cellw = floor((area.x + dist) / part.x);
size_t cellh = floor((area.x + dist) / part.x);
if (total_parts > (cellw * cellh))
CONFESS("%zu parts won't fit in your print area!\n", total_parts);