kurtz le pirate <kur### [at] free fr> wrote:
> So, splitting conditions seems to be the only solution with POV.
But not always straight forward,
#if (Z > 0 & VoxelGrid[X][Y][Z-1] > 0)
.....
#else
.....
#end
after splitting #else may not be reached, where it is in the original (VoxelGrid
= 0).
#if (Z > 0)
#if (VoxelGrid[X][Y][Z-1] > 0)
....
#end
#else
....
#end
it needs some thought and the code is way more complex than this. (#switch #case
can be an alternative after turning the conditions into "states")
ingo
Post a reply to this message
|