dabreegster / polygon-width

https://dabreegster.github.io/polygon-width/
Apache License 2.0
2 stars 0 forks source link

Define quality of output #4

Open dabreegster opened 3 months ago

dabreegster commented 3 months ago

In a perfect world, the union of all the thickened polygons would be exactly the input polygon. Can find the difference either left over or leaking out of the input, and compare areas to the input polygon. After major bugs are sorted out, I'd expect the quality to improve as the step size shrinks (by the calculus integration argument -- smaller step size, thinner rectangles to fit the area under the curve)