next up previous contents
Next: 4. A Fast Level Up: 3.5 Level Set Data Previous: 3.5.3 Dynamic Tubular Grid

3.5.4 Hierarchical Run-Length Encoding

The RLE data structure is also able to store the sign of the LS function for all undefined grid points, while the DTG has ideal linear scaling memory requirements and is adaptive in all grid directions. A data structure that combines the advantages of the RLE and DTG data structures is the hierarchical run-length encoded (H-RLE) data structure [44].

As shown in Figure 3.6 the H-RLE data structure is hierarchically organized, similar to the DTG. However, instead of storing sequences of defined grid points, which are projected to the same grid point in the lower dimensional space, run-length encoding is applied. Hence, the H-RLE data structure is able to store the sign of the LS function for all undefined grid points and, in addition, it shows the same characteristics regarding memory consumption and random access as the DTG.

Figure 3.6: The H-RLE data structure applies run-length encoding hierarchically over all grid dimensions in order to obtain an efficient LS data structure which combines the advantages of run-length encoding and the hierarchically organized DTG.
Image fig_3_6

The H-RLE data structure leads to an inherent segmentation of the entire grid. All grid points either belong to an undefined run or are defined grid points. Figure 3.7 shows the corresponding segmentation of the two-dimensional example given in Figure 3.3. The number of segments for the worst case is $ {{N}_\text{D}}\cdot(2{D}+1)={\mathcal{O}}({{N}_\text{D}})$ . However, if many defined grid points are neighbored, which is a common case for the LS method, the number of segments is much smaller.

Figure 3.7: The segmentation of the grid (black thick lines) which is implicitly defined by the H-RLE data structure. Each segment represents either a run of positive (blue) or negative (red) undefined grid points or a single defined grid point (green).
Image fig_3_7


next up previous contents
Next: 4. A Fast Level Up: 3.5 Level Set Data Previous: 3.5.3 Dynamic Tubular Grid

Otmar Ertl: Numerical Methods for Topography Simulation