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

Note: This API is now obsolete.

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
[ObsoleteAttribute("Obsolete since Open Inventor 9.4.0.0. Use SoBufferObject* readTile(int index, const SbBox3i32& tilePosition) instead.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override bool ReadTile(
	int index,
	SbNativeArray<byte> buffer,
	SbBox3i32 tilePosition
)

Parameters

index
Type: SystemInt32

specifies a fileID, the id of an existing tile (fileID=tileID in a cubical volume).

buffer
Type: OIV.Inventor.GenericSbNativeArrayByte

The buffer in which the data is returned.

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 reader (can be used for mapping to a different index scheme).

Return Value

Type: Boolean
Remarks

Given an index, reads a tile if the data is organized in tiles (for LDM). 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.

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.

Caution note Caution

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

See Also