Click or drag to resize
SoVRLdmFileBorderReaderReadTile 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.2.2.0 (10.16.2.0)
Syntax
public override 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
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.

Returns a pointer to an allocated buffer containing the data.

See Also