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.AlgorithmsAssembly: 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
)
Public Sub ComputeMinMaxWithUndefinedValue (
inputBuffer As SoBufferObject,
dataType As SbDataType,
arrayDim As SbVec3i32,
range As SbBox3i32,
undefinedValue As Double,
<OutAttribute> ByRef min As Double,
<OutAttribute> ByRef max As Double
)
public:
void ComputeMinMaxWithUndefinedValue(
SoBufferObject^ inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range,
double undefinedValue,
[OutAttribute] double% min,
[OutAttribute] double% max
)
member ComputeMinMaxWithUndefinedValue :
inputBuffer : SoBufferObject *
dataType : SbDataType *
arrayDim : SbVec3i32 *
range : SbBox3i32 *
undefinedValue : float *
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
- 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