fix use of flatness to drop points in cpu contour
This commit is contained in:
parent
a04b5c5c1b
commit
df72bb8996
1 changed files with 1 additions and 1 deletions
|
|
@ -725,7 +725,7 @@ export class Trace {
|
|||
const slope = Math.atan2(dz, dl);
|
||||
if (curvesOnly && Math.abs(dz) < flatness) {
|
||||
end_poly(newP);
|
||||
} else if (lastSlope !== undefined && Math.abs(lastSlope - slope) < 0.001) {
|
||||
} else if (lastSlope !== undefined && Math.abs(lastSlope - slope) < flatness) {
|
||||
latent = newP;
|
||||
} else {
|
||||
if (latent) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue