mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Enabled the C++ fillers for all infills, not just the supports.
Made sure the C++ fillers are instantiated at the worker threads, where there are being released. Extended the FillRectilinear2 to calculate the contour / line intersection with exact arithmetics, improved robustness and added error handling and error reporting, if the contours to be filled are not correct.
This commit is contained in:
@@ -406,7 +406,7 @@ bool remove_small(Polygons &polys, double min_area)
|
||||
bool modified = false;
|
||||
size_t j = 0;
|
||||
for (size_t i = 0; i < polys.size(); ++ i) {
|
||||
if (polys[i].area() >= min_area) {
|
||||
if (std::abs(polys[i].area()) >= min_area) {
|
||||
if (j < i)
|
||||
std::swap(polys[i].points, polys[j].points);
|
||||
++ j;
|
||||
|
||||
Reference in New Issue
Block a user