konmast3r / Up3date

A Blender plugin to import/export 3D city models encoded in CityJSON format
MIT License
9 stars 17 forks source link

Deal with holes in polygons #11

Open konmast3r opened 5 years ago

konmast3r commented 5 years ago

So far holes ignored

hugoledoux commented 5 years ago

because Blender cannot triangulate polygons with holes, right?

Then we need to triangulate ourselves with https://pypi.org/project/mapbox-earcut/ for instance. Should be doable?

konmast3r commented 5 years ago

I believe that it should be doable, yes!

hugoledoux commented 5 years ago

example there how to use the library: https://github.com/tudelft3d/cjio/blob/master/cjio/cityjson.py#L1216

But I don't handle holes yet...