SoVRLdmFileBorderReaderReadTile 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).
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.
Returns a pointer to an allocated buffer containing the data.