Open frewsxcv opened 1 year ago
This is sort of an aside, but what is the use case for LineString::triangles
?
Does anyone know of another geospatial package that implements such an algorithm?
edit: to clarify, I understand why a triangulation algorithm is useful (e.g. Delaunay triangulation), but the LineString::triangles
algorithm we have is very different (hence this issue) — it returns a series of overlapping triangles made from the sliding window of 3 coordinates of the linestring.
It's used in our simplify algorithms:
We could rename it to triangle_windows
to match the naming scheme of slice#windows
(as opposed to slice#chunks
)
https://docs.rs/geo/0.24.1/geo/geometry/struct.LineString.html#method.triangles
Would be good to clarify now that we are considering adding a
Triangulate
algorithm