SoVolumeReaderReadTile Method (Int32, SbBox3i32) |
Given an index, reads a tile if the data is organized in tiles (for LDM).
Namespace: OIV.LDM.Readers
specifies a fileID, the id of an existing tile (fileID=tileID in a cubical volume).
specifies the position of the data in the associated volume data of the tile corresponding to the given index. In the default OIV.LDM.Readers.SoVRLdmFileReader, the tilePosition isn't actually used but it is passed as a convenience for customized readers (can be used for mapping to a different index scheme).
the buffer containing the data of the tile, or NULL (or an empty buffer) in order to specify an undefined tile.
In the default LDM architecture, the LDM data is based on an octree topology (see SoLDMFileReader). The index passed is 0 for the tile of lowest resolution representing the entire volume (octree root node). The index increments linearly going down through the octree.
A tile can be undefined or empty which means it is not rendered and it isn't taken into account for the rendering of its adjacent cells. An empty buffer or NULL can be returned by this method to specify an undefined tile.