minor parameter changes
This commit is contained in:
parent
b04e3bc25e
commit
3e42d16f62
2 changed files with 4 additions and 5 deletions
|
@ -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++) {
|
||||
|
|
|
@ -42,7 +42,7 @@ struct Params
|
|||
BrimType brim_type;
|
||||
const float brim_width;
|
||||
|
||||
const std::pair<float,float> malformation_distance_factors = std::pair<float, float> { 0.3, 0.9 };
|
||||
const std::pair<float,float> malformation_distance_factors = std::pair<float, float> { 0.2, 1.1 };
|
||||
const float max_curled_height_factor = 10.0f;
|
||||
const float curling_tolerance_limit = 0.1f;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue