From 08fb677583518382f3ff4a42fadc431d0a9870f0 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Tue, 7 Aug 2018 14:23:57 +0200 Subject: [PATCH] Fine tuning of precision. --- xs/src/libslic3r/ModelArrange.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xs/src/libslic3r/ModelArrange.hpp b/xs/src/libslic3r/ModelArrange.hpp index 118bff17f..f4ce0daca 100644 --- a/xs/src/libslic3r/ModelArrange.hpp +++ b/xs/src/libslic3r/ModelArrange.hpp @@ -226,7 +226,7 @@ objfunc(const PointImpl& bincenter, // The final mix of the score is the balance between the distance // from the full pile center, the pack density and the // alignment with the neigbours - score = 0.4 * dist + 0.4 * density + 0.2 * alignment_score; + score = 0.45 * dist + 0.45 * density + 0.1 * alignment_score; } else if( !isBig(item.area()) && spatindex.empty()) { // If there are no big items, only small, we should consider the @@ -261,7 +261,7 @@ void fillConfig(PConf& pcfg) { // The accuracy of optimization. // Goes from 0.0 to 1.0 and scales performance as well - pcfg.accuracy = 1.0f; + pcfg.accuracy = 0.6f; } template