mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Ensure bed shape is in correct orientation (#9350)
Fix #9345 This also fixes deltamaker's plate logo rendering:  And fix bed rendering issue for custom shaped bed without model:  Also fix rendering of exclusion area that are defined in clockwise: 
This commit is contained in:
@@ -2627,12 +2627,13 @@ void PartPlate::generate_exclude_polygon(ExPolygon &exclude_polygon)
|
||||
exclude_polygon.contour.append({ scale_(p(0)), scale_(p(1)) });
|
||||
}
|
||||
}
|
||||
|
||||
exclude_polygon.contour.make_counter_clockwise();
|
||||
}
|
||||
|
||||
bool PartPlate::set_shape(const Pointfs& shape, const Pointfs& exclude_areas, Vec2d position, float height_to_lid, float height_to_rod)
|
||||
{
|
||||
Pointfs new_shape, new_exclude_areas;
|
||||
m_raw_shape = shape;
|
||||
for (const Vec2d& p : shape) {
|
||||
new_shape.push_back(Vec2d(p.x() + position.x(), p.y() + position.y()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user