python - Split quadrilateral into sub-regions of a maximum area -


it pretty easy split rectangle/square smaller regions , enforce maximum area of each sub-region. can divide region regions sides length sqrt(max_area) , treat leftovers care.

with quadrilateral stumped. let's assume don't know angle of of corners. let's assume 4 points on same plane. also, don't need the small regions same size. requirement have area of each individual region less max area.

is there particular data structure use make easier?
there algorithm i'm not finding?

could use quadtrees this? i'm not incredibly versed in trees know how implement structure.

i have gis work in mind when i'm doing this, confident that have no impact on algorithm split quad.

you recursively split quad in half on long sides until resulting area small enough.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -