mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-04 11:02:42 +00:00
New approach to big items with calculating the best alignment with other big items.
This commit is contained in:
@@ -314,8 +314,8 @@ inline RawPoint _Box<RawPoint>::center() const BP2D_NOEXCEPT {
|
||||
using Coord = TCoord<RawPoint>;
|
||||
|
||||
RawPoint ret = {
|
||||
static_cast<Coord>( (getX(minc) + getX(maxc))/2.0 ),
|
||||
static_cast<Coord>( (getY(minc) + getY(maxc))/2.0 )
|
||||
static_cast<Coord>( std::round((getX(minc) + getX(maxc))/2.0) ),
|
||||
static_cast<Coord>( std::round((getY(minc) + getY(maxc))/2.0) )
|
||||
};
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -590,7 +590,8 @@ public:
|
||||
[this, &merged_pile](
|
||||
Nfp::Shapes<RawShape>& /*pile*/,
|
||||
const Item& item,
|
||||
double occupied_area, double norm,
|
||||
double occupied_area,
|
||||
double norm,
|
||||
double /*penality*/)
|
||||
{
|
||||
merged_pile.emplace_back(item.transformedShape());
|
||||
|
||||
Reference in New Issue
Block a user