3 for non-closed rings, rings/polygons, etc where the first point does not match the first, i.e. implicitly closed.
4 for closed rings
This will give polygons completely simplified a non-zero area. This should help keep the geometry valid after simplification. Note that the simplification can still cause self-intersections.
As described and requested in https://github.com/paulmach/orb/pull/124 by @albertyw this PR sets the "default min points" for the Visvalingam to:
This will give polygons completely simplified a non-zero area. This should help keep the geometry valid after simplification. Note that the simplification can still cause self-intersections.