Skip to content

Commit

Permalink
discard points and lines for now
Browse files Browse the repository at this point in the history
  • Loading branch information
roelarents committed Dec 8, 2023
1 parent 1cb95d0 commit e786491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snap/snap.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

const (
keepPointsAndLines = false // TODO do something with polys that collapsed into points and lines
internalPixelResolution = 16
)

Expand Down Expand Up @@ -151,7 +152,7 @@ func cleanupNewRing(newRing [][2]float64, isOuter bool) [][2]float64 {
case 0:
return nil
case 1, 2:
if isOuter {
if isOuter && keepPointsAndLines {
// keep outer ring as point or line
return newRing
}
Expand Down

0 comments on commit e786491

Please sign in to comment.