From 3b5f40710cb7722485539d595f2ba839ba919d5d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 12 May 2017 11:14:25 +0200 Subject: [PATCH] Support Generator: Fixed initial indices in search caches. Changed the interface layer infill type to concentric for soluble supports. --- xs/src/libslic3r/SupportMaterial.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xs/src/libslic3r/SupportMaterial.cpp b/xs/src/libslic3r/SupportMaterial.cpp index 08ffce8b37..7dccb6d710 100644 --- a/xs/src/libslic3r/SupportMaterial.cpp +++ b/xs/src/libslic3r/SupportMaterial.cpp @@ -2561,11 +2561,11 @@ void PrintObjectSupportMaterial::generate_toolpaths( infill_pattern, &bbox_object, support_density, interface_density, interface_angle, &angles, link_max_length_factor, with_sheath] (const tbb::blocked_range& range) { // Indices of the 1st layer in their respective container at the support layer height. - size_t idx_layer_bottom_contact = 0; - size_t idx_layer_top_contact = 0; - size_t idx_layer_intermediate = 0; - size_t idx_layer_inteface = 0; - std::unique_ptr filler_interface = std::unique_ptr(Fill::new_from_type(ipRectilinear)); + size_t idx_layer_bottom_contact = size_t(-1); + size_t idx_layer_top_contact = size_t(-1); + size_t idx_layer_intermediate = size_t(-1); + size_t idx_layer_inteface = size_t(-1); + std::unique_ptr filler_interface = std::unique_ptr(Fill::new_from_type(m_slicing_params.soluble_interface ? ipConcentric : ipRectilinear)); std::unique_ptr filler_support = std::unique_ptr(Fill::new_from_type(infill_pattern)); filler_interface->set_bounding_box(bbox_object); filler_support->set_bounding_box(bbox_object);