do not consider concave angles for curling, they actually improve the issue

This commit is contained in:
PavelMikus 2022-06-28 14:49:08 +02:00
parent 8e5cdf29ba
commit 0187ed855e

View File

@ -473,7 +473,8 @@ void check_extrusion_entity_stability(const ExtrusionEntity *entity,
current_line.malformation += 0.9 * nearest_line.malformation;
}
if (dist_from_prev_layer > flow_width * 0.3) {
current_line.malformation += 0.15 * (0.6 + 0.4 * malformation_acc.max_curvature / PI);
malformation_acc.add_distance(current_line.len);
current_line.malformation += 0.15 * (0.8 + 0.2 * malformation_acc.max_curvature / (1.0f + 0.5f*malformation_acc.distance));
} else {
malformation_acc.reset();
}