ElmarJ / GeoJsonCityBuilder

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

Generate mesh around line or polygon border #11

Closed ElmarJ closed 2 years ago

ElmarJ commented 4 years ago

Allow to generate a shape (mesh) around the lines (borders) of a Polygon (and potential also geojson LineString). Specifically: generate along each line four faces (inner/outer/top/left) at specified distances from the line to create shapes that resamble a squared donut. This would, for example, allow to easily generate a stone band / border along canals, generate sidewalks around building blocks and generate curbs around sidewalks.

ElmarJ commented 2 years ago

Could transform into something that generates meshes from arbitrary splines. Could be very useful for creation of roads / fences / tram tracks / dykes etc.

Maybe using https://github.com/benoit-dumas/SplineMesh