What is hole?
For example - take a look on map of South Africa. You see country of Lesotho which is bordered from every side by South Africa. So there is polygon "South Africa" and polygon "Lesotho" inside. Algorithm thats correctly merge and split polygons with holes is not easy to implement.
After some quick research I discovered that are no good library in ActionScript to handle this issue. I found some open source libraries in C++ and Java but I was not convinced to move this code to server side. After all I decided to port one of best geometrical libraries GPCAS to ActionScript. Because it was easier I ported already existing java version of library. Finally feature rich GPC library is available nativele in ActionScript 3 as SWC library. Anyone who wants may use it in his product.
http://code.google.com/p/gpcas/
Brak komentarzy:
Prześlij komentarz