mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Fix broken partial arrange
This commit is contained in:
parent
253ec07cb2
commit
ba82cbe007
1 changed files with 14 additions and 16 deletions
|
@ -340,7 +340,6 @@ class AutoArranger {};
|
||||||
template<class TBin>
|
template<class TBin>
|
||||||
class _ArrBase {
|
class _ArrBase {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Useful type shortcuts...
|
// Useful type shortcuts...
|
||||||
using Placer = typename placers::_NofitPolyPlacer<clppr::Polygon, TBin>;
|
using Placer = typename placers::_NofitPolyPlacer<clppr::Polygon, TBin>;
|
||||||
using Selector = selections::_FirstFitSelection<clppr::Polygon>;
|
using Selector = selections::_FirstFitSelection<clppr::Polygon>;
|
||||||
|
@ -349,7 +348,6 @@ public:
|
||||||
using Distance = TCoord<PointImpl>;
|
using Distance = TCoord<PointImpl>;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
Packer m_pck;
|
Packer m_pck;
|
||||||
PConfig m_pconf; // Placement configuration
|
PConfig m_pconf; // Placement configuration
|
||||||
double m_bin_area;
|
double m_bin_area;
|
||||||
|
@ -360,8 +358,8 @@ protected:
|
||||||
Box m_pilebb; // The bounding box of the merged pile.
|
Box m_pilebb; // The bounding box of the merged pile.
|
||||||
ItemGroup m_remaining; // Remaining items (m_items at the beginning)
|
ItemGroup m_remaining; // Remaining items (m_items at the beginning)
|
||||||
ItemGroup m_items; // The items to be packed
|
ItemGroup m_items; // The items to be packed
|
||||||
public:
|
|
||||||
|
|
||||||
|
public:
|
||||||
_ArrBase(const TBin& bin, Distance dist,
|
_ArrBase(const TBin& bin, Distance dist,
|
||||||
std::function<void(unsigned)> progressind,
|
std::function<void(unsigned)> progressind,
|
||||||
std::function<bool(void)> stopcond):
|
std::function<bool(void)> stopcond):
|
||||||
|
@ -715,8 +713,8 @@ bool arrange(ArrangeablePtrs & arrangables,
|
||||||
clpath.Contour.emplace_back(firstp);
|
clpath.Contour.emplace_back(firstp);
|
||||||
|
|
||||||
outp.emplace_back(applyfn, std::move(clpath));
|
outp.emplace_back(applyfn, std::move(clpath));
|
||||||
outp.front().rotation(rotation);
|
outp.back().rotation(rotation);
|
||||||
outp.front().translation({offs.x(), offs.y()});
|
outp.back().translation({offs.x(), offs.y()});
|
||||||
};
|
};
|
||||||
|
|
||||||
for (Arrangeable *arrangeable : arrangables) {
|
for (Arrangeable *arrangeable : arrangables) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue