arx-tools/arx-level-generator

automatically subdivide large polygons

Opened this issue · 3 comments

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.

  • create Polygon.isTooLarge()
  • create dummy Polygon.subdivide() with nothing inside (maybe add a // TODO: implement)
  • in ArxMap.finalize() go through every polygon and if it .isTooLarge() then .subdivide()
  • implement Polygon.subdivide()

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

what about EntityModels?