Whoah, I managed to speed up the sphere creation by allot. First it took 3,988 seconds to create a 40x40x40 sphere, but now it took only 0,103 seconds. This was simply by only checking 1/8 of the sphere, while setting all other parts of the sphere. I did notice that the number of blocks that changed isn't the same as before, but I think it's worth it.
Wait, I still have to implement hollow spheres. This could slow it down a little, but I doubt by allot.
Whoah, I just can't believe how quick this is. A sphere with a radius of 90 is done in 1.669 seconds!
Wow, I just discovered that bukkit WorldEdit doesn't have the number of changed blocks correct either. When using //sphere glass 4 it says 624 blocks have been created, while when I replace them with dirt it says 389 blocks have been replaced.
Wait, I still have to implement hollow spheres. This could slow it down a little, but I doubt by allot.
Whoah, I just can't believe how quick this is. A sphere with a radius of 90 is done in 1.669 seconds!
Wow, I just discovered that bukkit WorldEdit doesn't have the number of changed blocks correct either. When using //sphere glass 4 it says 624 blocks have been created, while when I replace them with dirt it says 389 blocks have been replaced.