mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06: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:
parent
f788f50b5a
commit
9e4edcd8ec
11 changed files with 314 additions and 172 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue