Click or drag to resize
SoArithmetic.ComputeMinMaxWithUndefinedValue 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.Devices.SoBufferObject

The source buffer object.

dataType
Type: OIV.Inventor.SbDataType

The type of the data in the source buffer object.

arrayDim
Type: OIV.Inventor.SbVec3i32

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

range
Type: OIV.Inventor.SbBox3i32

Subset of the array to consider

undefinedValue
Type: System.Double

ignored value

min
Type: System.Double

Result values

max
Type: System.Double
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