ENH: cherry pick some fix about seam from PrusaSlicer

Synced from PrusaSlicer. Thanks

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I043088d9795f5352d4e0b5060402b70897fd7592
This commit is contained in:
salt.wei 2022-08-22 14:47:01 +08:00 committed by Lane.Wei
parent 36528738fe
commit 5bea8a76fc
2 changed files with 19 additions and 22 deletions

View file

@ -118,11 +118,10 @@ public:
// square of number of rays per sample point
static constexpr size_t sqr_rays_per_sample_point = 5;
// arm length used during angles computation
static constexpr float polygon_local_angles_arm_distance = 0.3f;
// snapping angle - angles larger than this value will be snapped to during seam painting
static constexpr float sharp_angle_snapping_threshold = 55.0f * float(PI) / 180.0f;
// overhang angle for seam placement that still yields good results, in degrees, measured from vertical direction
//BBS
static constexpr float overhang_angle_threshold = 45.0f * float(PI) / 180.0f;
// determines angle importance compared to visibility ( neutral value is 1.0f. )