My concern is how to use the computed areas. Regions likely do not have enough fidelity to perfectly represent the area. The result is some dynamic list of points which will need some functions to perform area operations on.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
that very hard,forget it! sorry everybody,my galaxy scripting does not good work... so,do something else
I assume this is a space partitioning algorthim? https://en.wikipedia.org/wiki/Voronoi_diagram
What result format do you expect the voronoi cells to be? I do not think Regions will work well due to the complexity voronoi cells can be.
i think only an array of points make sense (Points [BigInt][PlayerIndex], whereas the array index says who the area "owns"
Good news,I make a sample code,Its very samll,and have a little bug.It not good working,now. I will improve code,and share Galaxy Script for everyone.
@ImperialGood: Go
It can dynamic analysis/create regions
@FunkyUserName: Go
I am a novice,so i only use struc and array,i think you are right,i will try point
My concern is how to use the computed areas. Regions likely do not have enough fidelity to perfectly represent the area. The result is some dynamic list of points which will need some functions to perform area operations on.