Click or drag to resize
SoArithmeticComputeMinMax Method (SoBufferObject, SbDataType, SbVec3i32, SbBox3i32, Double, Double)

Compute min max of values contained in the specified range of the buffer.

Namespace: OIV.Inventor.Algorithms
Assembly: OIV.Inventor.Algorithms (in OIV.Inventor.Algorithms.dll) Version: 2024.1.3.0 (2024.1.3)
Syntax
public void ComputeMinMax(
	SoBufferObject inputBuffer,
	SbDataType dataType,
	SbVec3i32 arrayDim,
	SbBox3i32 range,
	out double min,
	out double max
)

Parameters

inputBuffer
Type: OIV.Inventor.DevicesSoBufferObject

The source buffer object.

dataType
Type: OIV.InventorSbDataType

The type of the data in the source buffer object.

arrayDim
Type: OIV.InventorSbVec3i32

Dimensions of the array (can be degenerate, e.g. N,1,1)

range
Type: OIV.InventorSbBox3i32

Subset of the array to consider

min
Type: SystemDouble

Result values

max
Type: SystemDouble
Remarks

Assumes the buffer contains a 3D array of values. However 1D and 2D arrays can be handled as degenerate cases. For example, to use a 1D array of length N and compute over the range I to J:

  • Set arrayDim = N,1,1 (do not use 0 for any dimension)

  • Set range = I,0,0,J,1,1 (be sure min and max for each axis are not the same)

See Also