mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fix of infill connecting along perimeter lines,
new 3-opt iterative improvement of infill path (currently disabled, it is extremely slow)
This commit is contained in:
parent
b2b5df7d43
commit
afa72da9d1
5 changed files with 259 additions and 72 deletions
|
@ -185,6 +185,7 @@ void FillGyroid::_fill_surface_single(
|
|||
if (! polylines.empty())
|
||||
// remove too small bits (larger than longer)
|
||||
polylines.erase(
|
||||
//FIXME what is the small size? Removing tiny extrusions disconnects walls!
|
||||
std::remove_if(polylines.begin(), polylines.end(), [this](const Polyline &pl) { return pl.length() < scale_(this->spacing * 3); }),
|
||||
polylines.end());
|
||||
|
||||
|
@ -195,7 +196,7 @@ void FillGyroid::_fill_surface_single(
|
|||
if (params.dont_connect)
|
||||
append(polylines_out, std::move(polylines));
|
||||
else
|
||||
this->connect_infill(std::move(polylines), expolygon, polylines_out, params);
|
||||
this->connect_infill(std::move(polylines), expolygon, polylines_out, this->spacing, params);
|
||||
// new paths must be rotated back
|
||||
if (abs(infill_angle) >= EPSILON) {
|
||||
for (auto it = polylines_out.begin() + polylines_out_first_idx; it != polylines_out.end(); ++ it)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue