Click or drag to resize
SoVolumeReaderReadTile Method (Int32, SbBox3i32)
Given an index, reads a tile if the data is organized in tiles (for LDM).

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public virtual SoBufferObject ReadTile(
	int index,
	SbBox3i32 tilePosition
)

Parameters

index
Type: SystemInt32
Used to specify a fileID, the id of an existing tile (fileID=tileID in a cubical volume).
tilePosition
Type: OIV.InventorSbBox3i32
Specifies the position of the data in the associated volume data of the tile corresponding to the given index. In the default 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).

Return Value

Type: SoBufferObject
Returns the pointer to a buffer (allocated by the reader) containing data.
Remarks
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.
See Also