FIX: fix the model is placed at outside of bed, when arrange by object

Jira: STUDIO-11815

Change-Id: I98ba7723eb37fa82d7d3a7716b87f83e063f534f
This commit is contained in:
shan.chang 2025-04-24 17:49:05 +08:00 committed by lane.wei
parent d05be9e2e7
commit 1586835c59
2 changed files with 5 additions and 5 deletions

View File

@ -693,7 +693,7 @@ private:
// item won't overlap with virtual objects if it's inside or touches NFP
// @return 1 if current item overlaps with virtual objects, 0 otherwise
bool overlapWithVirtObject(const Item& item, const Box& binbb){
if (items_.empty()) return 0;
if (items_.empty()) return false;
Shapes nfps = calcnfp(item, binbb, Lvl<MaxNfpLevel::value>());
auto v = item.referenceVertex();
for (const RawShape &nfp : nfps) {
@ -1262,9 +1262,9 @@ private:
Vertex ci, cb;
Box bbin = sl::boundingBox(bin_);
Vertex shrink(10, 10);
bbin.maxCorner() -= shrink;
bbin.minCorner() += shrink;
//Vertex shrink(10, 10);
//bbin.maxCorner() -= shrink;
//bbin.minCorner() += shrink;
switch(config_.starting_point) {
case Config::Alignment::CENTER: {

View File

@ -4,7 +4,7 @@
#include "ExPolygon.hpp"
#include "PrintConfig.hpp"
#define BED_SHRINK_SEQ_PRINT 5
#define BED_SHRINK_SEQ_PRINT 0
namespace Slic3r {