minor parameter changes

This commit is contained in:
Pavel Mikus 2023-03-29 18:32:41 +02:00 committed by Pavel Mikuš
parent b04e3bc25e
commit 3e42d16f62
2 changed files with 4 additions and 5 deletions

View file

@ -299,13 +299,12 @@ public:
for (ExtendedPoint& ep : extended_points) {
// We are going to enforce slowdown by increasing the point distance. The overhang speed is based on signed distance from
// the prev layer, where 0 means fully overlapping extrusions and thus no slowdown, while extrusion_width and more means full overhang, thus full slowdown.
// However, for curling, we take unsinged distance from the curled lines and artifically modifiy the distance
// the prev layer, where 0 means fully overlapping extrusions and thus no slowdown, while extrusion_width and more means full overhang,
// thus full slowdown. However, for curling, we take unsinged distance from the curled lines and artifically modifiy the distance
float distance_from_curled = prev_curled_extrusions[current_object].distance_from_lines<false>(ep.position);
ep.distance = std::max(ep.distance, path.width - distance_from_curled);
ep.distance = std::max(ep.distance, (path.width - distance_from_curled));
}
std::vector<ProcessedPoint> processed_points;
processed_points.reserve(extended_points.size());
for (size_t i = 0; i < extended_points.size(); i++) {