vmtkmesharrayoperation

Description

perform an operation between arrays of two meshes and store result in the first mesh

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iMeshvtkUnstructuredGrid1the input mesh
ifileMeshInputFileNamestr1filename for the default Mesh reader
i2Mesh2vtkUnstructuredGrid1the second input mesh
i2fileMesh2InputFileNamestr1filename for the default Mesh2 reader
operationOperationstr1["multiplybyc","addc","add","subtract","min","max"]addthe operation to be performed on the array; multiplybyc and addc only require the first input mesh to be specified
constantConstantfloat10.0the value of the constant for multiplybyc and addc
iarrayInputArrayNamestr1Nonethe name of the array on the first mesh
i2arrayInput2ArrayNamestr1Nonethe name of the array on the second mesh; if unspecified, InputArrayName is used
resultarrayResultArrayNamestr1Resultthe name of the array where the result of the operation is stored
ofileMeshOutputFileNamestr1filename for the default Mesh writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oMeshvtkUnstructuredGrid1the output mesh