Skip to content

ReverseSense ​

Introduction ​

vtkReverseSense is a filter that reverses the order of polygonal cells and/or reverses the direction of point and cell normals. Two flags are used to control these operations: reverseCells and reverseNormals. Cell reversal means reversing the order of indices in the cell connectivity list. Normal reversal means multiplying the normal vector by -1 (both point and cell normals, if present).

Methods ​

extend ​

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

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

getReverseCells ​

Get whether the order of polygonal cells is reversed.

getReverseNormals ​

Get whether the direction of point and cell normals is reversed.

newInstance ​

Method used to create a new instance of vtkReverseSense.

ArgumentTypeRequiredDescription
initialValuesIReverseSenseInitialValuesNofor pre-setting some of its content

requestData ​

Request data from the input and produce output.

ArgumentTypeRequiredDescription
inDataYesThe input data.
outDataYesThe output data.

setReverseCells ​

Controls whether the order of polygonal cells is reversed.

ArgumentTypeRequiredDescription
reverseCellsBooleanYesThe new state of the reverseCells flag.

setReverseNormals ​

Controls whether the direction of point and cell normals is reversed.

ArgumentTypeRequiredDescription
reverseNormalsBooleanYesThe new state of the reverseNormals flag.