From 6cdff99df35a058c0f9ae31b3260fed7ee574e48 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 30 Nov 2016 11:26:26 +0100 Subject: [PATCH] Apply print bounding box for SLAPrint infill --- xs/src/libslic3r/SLAPrint.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/SLAPrint.cpp b/xs/src/libslic3r/SLAPrint.cpp index 053cfe05d6..35244f5603 100644 --- a/xs/src/libslic3r/SLAPrint.cpp +++ b/xs/src/libslic3r/SLAPrint.cpp @@ -58,7 +58,8 @@ SLAPrint::slice() if (this->config.fill_density < 100) { const float shell_thickness = this->config.get_abs_value("perimeter_extrusion_width", this->config.layer_height.value); std::auto_ptr fill = std::auto_ptr(Fill::new_from_type(this->config.fill_pattern.value)); - //fill->bounding_box = this->bb; + fill->bounding_box.merge(Point::new_scale(bb.min.x, bb.min.y)); + fill->bounding_box.merge(Point::new_scale(bb.max.x, bb.max.y)); fill->spacing = this->config.get_abs_value("infill_extrusion_width", this->config.layer_height.value); fill->angle = Geometry::deg2rad(this->config.fill_angle.value); FillParams fill_params;