mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-22 20:48:29 +08:00
Bugfix: the tangent edge removal algorithm was refactored the wrong way and wasn't used anymore
This commit is contained in:
parent
8fe38d9b71
commit
dc766f9f73
@ -191,7 +191,7 @@ sub make_loops {
|
|||||||
next unless defined $lines[$j] && defined $lines[$j][I_FACET_EDGE];
|
next unless defined $lines[$j] && defined $lines[$j][I_FACET_EDGE];
|
||||||
|
|
||||||
# are these facets adjacent? (sharing a common edge on this layer)
|
# are these facets adjacent? (sharing a common edge on this layer)
|
||||||
if ($lines[$i][I_A_ID] == $lines[$j][I_B_ID] && $lines[$i][I_B_ID] == $lines[$j][I_A_ID]) {
|
if ($lines[$i][I_A_ID] == $lines[$j][I_A_ID] && $lines[$i][I_B_ID] == $lines[$j][I_B_ID]) {
|
||||||
|
|
||||||
# if they are both oriented upwards or downwards (like a 'V')
|
# if they are both oriented upwards or downwards (like a 'V')
|
||||||
# then we can remove both edges from this layer since it won't
|
# then we can remove both edges from this layer since it won't
|
||||||
@ -205,7 +205,7 @@ sub make_loops {
|
|||||||
# if one of them is oriented upwards and the other is oriented
|
# if one of them is oriented upwards and the other is oriented
|
||||||
# downwards, let's only keep one of them (it doesn't matter which
|
# downwards, let's only keep one of them (it doesn't matter which
|
||||||
# one since all 'top' lines were reversed at slicing)
|
# one since all 'top' lines were reversed at slicing)
|
||||||
if ($lines[$i][I_FACET_EDGE] == FE_TOP && $lines[$j][I_FACET_EDGE] == FE_BOTTOM) {
|
if ($lines[$i][I_FACET_EDGE] != $lines[$j][I_FACET_EDGE]) {
|
||||||
$lines[$j] = undef;
|
$lines[$j] = undef;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user