Documented the seam placement corner penalty with an image.

This commit is contained in:
Vojtech Bubnik 2022-04-11 09:51:32 +02:00 committed by PavelMikus
parent 853b8adf80
commit adb467286f
2 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -734,7 +734,7 @@ private:
// ((^(((1)/(x^(2)*3+1)))-1)/(-1))*1+((1)/(2+^(-x)))
// looks scary, but it is gaussian combined with sigmoid,
// so that concave points have much smaller penalty over convex ones
// https://github.com/prusa3d/PrusaSlicer/tree/master/doc/seam_placement/corner_penalty_function.png
return gauss(ccw_angle, 0.0f, 1.0f, 3.0f) +
1.0f / (2 + std::exp(-ccw_angle)); // sigmoid, which heavily favourizes concave angles
}