FIX: auto-arranging result may fail clearance check
We add 0.001mm tolerance. Change-Id: I630cc680db0a3a65a6a44e177de686fbac1e1f15 (cherry picked from commit 170f9c2a89d03060f9a9aa43952c0759ffbe7c1f)
This commit is contained in:
parent
1cf688725a
commit
1a7b12fa38
|
@ -27,7 +27,7 @@
|
|||
|
||||
// #define SUPPORT_TREE_DEBUG_TO_SVG
|
||||
|
||||
#if SUPPORT_TREE_DEBUG_TO_SVG
|
||||
#ifdef SUPPORT_TREE_DEBUG_TO_SVG
|
||||
#include "nlohmann/json.hpp"
|
||||
#endif
|
||||
namespace Slic3r
|
||||
|
@ -3036,7 +3036,7 @@ void TreeSupport::smooth_nodes(std::vector<std::vector<Node *>> &contact_nodes)
|
|||
}
|
||||
}
|
||||
}
|
||||
#if SUPPORT_TREE_DEBUG_TO_SVG
|
||||
#ifdef SUPPORT_TREE_DEBUG_TO_SVG
|
||||
// save tree structure for viewing in python
|
||||
struct TreeNode {
|
||||
Vec3f pos;
|
||||
|
|
|
@ -511,7 +511,7 @@ void ArrangeJob::process()
|
|||
auto& print = wxGetApp().plater()->get_partplate_list().get_current_fff_print();
|
||||
|
||||
if (params.is_seq_print)
|
||||
params.min_obj_distance = std::max(params.min_obj_distance, scaled(params.cleareance_radius));
|
||||
params.min_obj_distance = std::max(params.min_obj_distance, scaled(params.cleareance_radius + 0.001)); // +0.001mm to avoid clearance check fail due to rounding error
|
||||
|
||||
if (params.avoid_extrusion_cali_region && print.full_print_config().opt_bool("scan_first_layer"))
|
||||
partplate_list.preprocess_nonprefered_areas(m_unselected, MAX_NUM_PLATES);
|
||||
|
|
Loading…
Reference in New Issue