Click or drag to resize
SoVolumeReaderGetSubSlice Method (SbBox2i32, Int32, SbNativeArrayByte)

Must copy the rectangular part defined by subSlice of the XY slice sliceNumber to the memory referenced by data.

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.0.0 (2024.1.0)
Syntax
public virtual void GetSubSlice(
	SbBox2i32 subSlice,
	int sliceNumber,
	SbNativeArray<byte> data
)

Parameters

subSlice
Type: OIV.InventorSbBox2i32

2D region of the slice to return.

sliceNumber
Type: SystemInt32

Slice number on the volume Z axis (first slice is 0).

data
Type: OIV.Inventor.GenericSbNativeArrayByte

Copy the data into this buffer.

Remarks

Slices will not always be read sequentially.

You can use the convenience method getBuffer() to read data from file. Note: OIV.LDM.Readers.SoVolumeReader.SetFilename(System.String) must have been called previously.

See Also