d3 / d3-contour

Compute contour polygons using marching squares.
https://d3js.org/d3-contour
ISC License
494 stars 63 forks source link

smoothing removes line segements #41

Closed kpetrow closed 4 years ago

kpetrow commented 4 years ago

When smoothing flag is true, contours removes the line segments and only leaves closed polygons. Is it possible to define he smoothing algorithm?

kpetrow commented 4 years ago

This was due to null values in the elevation array passed in. Set elevation to -1 and range to above 0 and worked fine.