Click or drag to resize
SoVolumeReaderGetNumVoxels Method

Utility function provided by OIV.LDM.Readers.SoVolumeReader for subclass readers to call.

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SbVec3i32 GetNumVoxels(
	SbVec3i32 realSize,
	SbVec3i32 subsamplingLevel
)

Parameters

realSize
Type: OIV.InventorSbVec3i32
subsamplingLevel
Type: OIV.InventorSbVec3i32

Return Value

Type: SbVec3i32
Remarks

Returns the size of the brick the reader must use, based on subsamplingLevel and realSize of the brick. If the subsampling level is greater than 0 on an axis, the corresponding size is computed as follows:

realSize is divided by 2** subsamplingLevel

brickSize is the next greater power of 2

For example, if subsamplingLevel[0]=1 and realSize[0]=21, then the returned readerSize[0]=16.

If subsamplingLevel is 0, the corresponding size is the realSize.

See Also