Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically subdivide large polygons #19

Open
3 of 4 tasks
meszaros-lajos-gyorgy opened this issue Aug 19, 2024 · 3 comments
Open
3 of 4 tasks

automatically subdivide large polygons #19

meszaros-lajos-gyorgy opened this issue Aug 19, 2024 · 3 comments

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

meszaros-lajos-gyorgy commented Aug 19, 2024

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()
@meszaros-lajos-gyorgy
Copy link
Collaborator Author

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
Copy link
Collaborator Author

@meszaros-lajos-gyorgy
Copy link
Collaborator Author

what about EntityModels?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant