mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Ensure bed shape is in correct orientation (SoftFever/OrcaSlicer#9345)
This commit is contained in:
@@ -1410,4 +1410,14 @@ ExPolygons variable_offset_inner_ex(const ExPolygon &expoly, const std::vector<s
|
||||
return output;
|
||||
}
|
||||
|
||||
Pointfs make_counter_clockwise(const Pointfs& pointfs)
|
||||
{
|
||||
Pointfs ps = pointfs;
|
||||
if (Polygon::new_scale(pointfs).is_clockwise()) {
|
||||
std::reverse(ps.begin(), ps.end());
|
||||
}
|
||||
|
||||
return ps;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user