ElmarJ / GeoJsonCityBuilder

Unity Package to recreate a 3D-city from a specially crafted geojson file.
MIT License
22 stars 2 forks source link

Automatically remove duplicate coordinates in Polygon #48

Open ElmarJ opened 2 months ago

ElmarJ commented 2 months ago

When building blocks from polygons (in file Editor/Builders/BlockFromPolygonBuilder.cs ), we do check whether the last and first point is duplicate, but not for other duplicates in the polygon. This causes an error when creating the mesh. In the Waterlooplein-data this is quite a common problem, it would be nice if we could silently (or with a warning) solve this by automatically removing one of the duplicate points.