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: 2024.1.0.0 (2024.1.0)
Syntax
public virtual SoBufferObject ReadTile(
	int index,
	SbBox3i32 tilePosition
)

Parameters

index
Type: SystemInt32

specifies 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 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).

Return Value

Type: SoBufferObject

the buffer containing the data of the tile, or NULL (or an empty buffer) in order to specify an undefined tile.

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.

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.

See Also