arx-tools / arx-level-generator

A tool for creating Arx Fatalis maps
MIT License
6 stars 0 forks source link

automatically subdivide large polygons #19

Open meszaros-lajos-gyorgy opened 4 weeks ago

meszaros-lajos-gyorgy commented 4 weeks ago

If a polygon is too large (one or more side's length is >100) then the level generator should slice it up in a way that each piece fits into a 100x100 quad.

meszaros-lajos-gyorgy commented 6 days ago

Having any of the sides longer than 100 isn't a good way to tell if a polygon's too large, here's an exception: image

meszaros-lajos-gyorgy commented 6 days ago

https://math.stackexchange.com/questions/4791032/triangle-inside-a-unit-square

meszaros-lajos-gyorgy commented 5 days ago

what about EntityModels?