LadyCailinBot
LadyCailinBot
Comment by wizjany duplicate edit: spoke to soon, apparently WE is just as broken as WG? however your code is using the wrong kind of region - WG regions and...
Comment by BukkitSmerf I only need size, but WG don't provide any options in ProtectedPolygonalRegion, so I used WE by ```java new Polygonal2DRegion(null, protectedPolygonalRegion.getPoints(), 64, 64);``` ;/ PS: any idea...
Comment by sk89q Well, you'll need a better algorithm than the one that WE uses, which is apparently broken. I don't have a better one off my head, otherwise WE...
Comment by BukkitSmerf hyym... So problem is in Minecraft blocks?, in normal math, if you have point x = 1 and x = 10 then you have 9 units, but...
Comment by sk89q That does work, but yeah, as you said, it's not ideal. Unfortunately, I have not yet studied computational geometry.
Comment by BukkitSmerf Me too :/ But i think that code will be better than old - return good size, but in longer time. (1000 x 1000 - 80 ms...
Comment by Dark_Arc @BukkitSmerf feel free to test this algorithm, I never got around to finishing the testing of it: https://github.com/sk89q/worldguard/blob/f5a3d6300453b0448cddd6f679efcfc7eb305ddb/src/main/java/com/sk89q/worldguard/protection/regions/ProtectedPolygonalRegion.java#L160
Comment by BukkitSmerf Hyym, sorry for time, I test it tomorrow, but if you only add this: " + .5" then result will be this same :P
Comment by Rob Btw it would also be a way to make half or quarter of spheres
Comment by sk89q Well I wouldn't do it unless you want to force people to use WE 6. Plus I'm not sure the API for the commands is 100% stable...