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

Compute min max of values contained in the specified range of the buffer that are not equal to the specified undefined value.

Namespace: OIV.Inventor.Algorithms
Assembly: OIV.Inventor.Algorithms (in OIV.Inventor.Algorithms.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void ComputeMinMaxWithUndefinedValue(
	SoBufferObject inputBuffer,
	SbDataType dataType,
	SbVec3i32 arrayDim,
	SbBox3i32 range,
	double undefinedValue,
	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

undefinedValue
Type: SystemDouble

ignored value

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