|
As mentioned before the adaptation of the Shear-Warp
Algorithm for BCC-grids is straight forward.
However there are some details that have to be taken into consideration.
If one wants to know the x-, y- and z-coordinates
of a voxel with index i, one simply has to do some
divisions and modulo-operations. With BCC-grids this
is similar, but a little more tricky. To understand
how the right positions of voxels in a BCC-grid
can be determined it is first neccessary to know
how data sets of BCC-grids are stored.
The following figure shows how this is done. Following
the red lines voxels are stored one by one
in memory. In the figure you can also see that there
are seven voxels in one row (i.e. slice) and all together
there are seven slices. Anyway the width of the volume
is two times as big as the depth. This is the case
To obtain a data set with equal width, height and
length this data set must have "red lines"
with double length. Indeed if a conversion of the regular
fuel data set (size: 64x64x64) is applied, the
resulting BCC-data set has a size of 90 slices each
with size 45x45.
When the data is viewed with a main viewing direction
not orthogonal to the 90 slices, the situation is
a little tricky. Specially if there is an odd number
of slices one has to deal with the following problem:
If the data set is viewed not from the front, the
slices (illustrated by blue lines) have alternating
size. This problem can be removed by simply adding
an empty slice to make the odd number even.
|