Skip to content

WarpScalar ​

Introduction ​

vtkWarpScalar - deform a dataset along its normals by its scalars

vtkWarpScalar displaces every point of its input along a normal by a distance equal to the point scalar times the scale factor. The normal is taken from the input point normals, from the instance normal, or from the z axis when xyPlane is on. The scalars are read from the array selected with setInputArrayToProcess.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWarpScalar characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIWarpScalarInitialValuesNo(default: {})

getNormal ​

Get the normal used when the input has no normals, or when useNormal is on.

getNormalByReference ​

Get the normal used when the input has no normals, or when useNormal is on.

getScaleFactor ​

Get the amount by which the points are displaced along the normal.

getUseNormal ​

Get whether the instance normal is used in place of the input normals.

getXyPlane ​

Get whether the z coordinate is used as the scalar to warp by.

newInstance ​

Method used to create a new instance of vtkWarpScalar

ArgumentTypeRequiredDescription
initialValuesIWarpScalarInitialValuesNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setNormal ​

Set the normal used when the input has no normals, or when useNormal is on.

ArgumentTypeRequiredDescription
xNumberYes
yNumberYes
zNumberYes

setNormal ​

Set the normal used when the input has no normals, or when useNormal is on.

ArgumentTypeRequiredDescription
normalVector3Yes

setNormalFrom ​

Set the normal used when the input has no normals, or when useNormal is on.

ArgumentTypeRequiredDescription
normalVector3Yes

setScaleFactor ​

Set the amount by which the points are displaced along the normal.

ArgumentTypeRequiredDescription
scaleFactorNumberYes

setUseNormal ​

Set whether the instance normal is used in place of the input normals.

ArgumentTypeRequiredDescription
useNormalBooleanYes

setXyPlane ​

Set whether the z coordinate is used as the scalar to warp by, in which case the points are displaced along the z axis.

ArgumentTypeRequiredDescription
xyPlaneBooleanYes