SoArithmeticComputeMinMax Method (SoBufferObject, SbDataType, SbVec3i32, SbBox3i32, Double, Double) |
Compute min max of values contained in the specified range of the buffer.
Namespace: OIV.Inventor.AlgorithmsAssembly: OIV.Inventor.Algorithms (in OIV.Inventor.Algorithms.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public void ComputeMinMax(
SoBufferObject inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range,
out double min,
out double max
)
Public Sub ComputeMinMax (
inputBuffer As SoBufferObject,
dataType As SbDataType,
arrayDim As SbVec3i32,
range As SbBox3i32,
<OutAttribute> ByRef min As Double,
<OutAttribute> ByRef max As Double
)
public:
void ComputeMinMax(
SoBufferObject^ inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range,
[OutAttribute] double% min,
[OutAttribute] double% max
)
member ComputeMinMax :
inputBuffer : SoBufferObject *
dataType : SbDataType *
arrayDim : SbVec3i32 *
range : SbBox3i32 *
min : float byref *
max : float byref -> unit
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