Fixed wrong orientation of infill and gap-fill extrusion.
When an island contains exactly one infill ExtrusionEntity, this extrusion was oriented to maximize travel distance from the end of the previous extrusion of perimeters instead of minimizing it.
This commit is contained in:
parent
d2c46025c7
commit
e123dfa8a4
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ std::vector<std::pair<size_t, bool>> chain_segments_greedy_constrained_reversals
|
||||||
{
|
{
|
||||||
// Just sort the end points so that the first point visited is closest to start_near.
|
// Just sort the end points so that the first point visited is closest to start_near.
|
||||||
out.emplace_back(0, could_reverse_func(0) && start_near != nullptr &&
|
out.emplace_back(0, could_reverse_func(0) && start_near != nullptr &&
|
||||||
(end_point_func(0, true) - *start_near).template cast<double>().squaredNorm() < (end_point_func(0, false) - *start_near).template cast<double>().squaredNorm());
|
(end_point_func(0, false) - *start_near).template cast<double>().squaredNorm() < (end_point_func(0, true) - *start_near).template cast<double>().squaredNorm());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue