mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-11 23:59:04 +08:00
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:
parent
d05be9e2e7
commit
1586835c59
@ -693,7 +693,7 @@ private:
|
|||||||
// item won't overlap with virtual objects if it's inside or touches NFP
|
// 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
|
// @return 1 if current item overlaps with virtual objects, 0 otherwise
|
||||||
bool overlapWithVirtObject(const Item& item, const Box& binbb){
|
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>());
|
Shapes nfps = calcnfp(item, binbb, Lvl<MaxNfpLevel::value>());
|
||||||
auto v = item.referenceVertex();
|
auto v = item.referenceVertex();
|
||||||
for (const RawShape &nfp : nfps) {
|
for (const RawShape &nfp : nfps) {
|
||||||
@ -1262,9 +1262,9 @@ private:
|
|||||||
|
|
||||||
Vertex ci, cb;
|
Vertex ci, cb;
|
||||||
Box bbin = sl::boundingBox(bin_);
|
Box bbin = sl::boundingBox(bin_);
|
||||||
Vertex shrink(10, 10);
|
//Vertex shrink(10, 10);
|
||||||
bbin.maxCorner() -= shrink;
|
//bbin.maxCorner() -= shrink;
|
||||||
bbin.minCorner() += shrink;
|
//bbin.minCorner() += shrink;
|
||||||
|
|
||||||
switch(config_.starting_point) {
|
switch(config_.starting_point) {
|
||||||
case Config::Alignment::CENTER: {
|
case Config::Alignment::CENTER: {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "ExPolygon.hpp"
|
#include "ExPolygon.hpp"
|
||||||
#include "PrintConfig.hpp"
|
#include "PrintConfig.hpp"
|
||||||
|
|
||||||
#define BED_SHRINK_SEQ_PRINT 5
|
#define BED_SHRINK_SEQ_PRINT 0
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user