Click or drag to resize
SoVolumeReaderReadTile Method (Int32, SbNativeArrayByte, SbBox3i32)

Note: This API is now obsolete.

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
[ObsoleteAttribute("Obsolete since Open Inventor 8.5.0.0. Use SoBufferObject* readTile(int index, const SbBox3i32& tilePosition) instead.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public virtual bool ReadTile(
	int index,
	SbNativeArray<byte> buffer,
	SbBox3i32 tilePosition
)

Parameters

index
Type: SystemInt32
buffer
Type: OIV.Inventor.GenericSbNativeArrayByte
tilePosition
Type: OIV.InventorSbBox3i32

Return Value

Type: Boolean
Remarks

In the default LDM architecture, the LDM data is based on an octree topology (see OIV.LDM.Readers.SoVRLdmFileReader). 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.

Indexing works as follows:

Tile 1 is the lower back left corner of the cube. The index increments on X, then Y, and finally Z. So the back tiles are:

3 4 1 2

And the front tiles are:

7 8 5 6

The tiles of full resolution are the leaf tiles.

In the default OIV.LDM.Readers.SoVRLdmFileReader, the tilePosition isn't actually used by the reader but it is passed as a convenience for customized readers (can be used for mapping to a different index scheme).

Caution note Caution

Obsolete since Open Inventor 8500. Use SoBufferObject* OIV.LDM.Readers.SoVolumeReader.ReadTile(System.Int32, OIV.Inventor.SbBox3i32) instead.

See Also