Skip to content

WindowedSincPolyDataFilter ​

Introduction ​

vtkWindowedSincPolyDataFilter - adjust point positions using a windowed sinc function interpolation kernel

vtkWindowedSincPolyDataFilter adjusts point coordinates using a windowed sinc function interpolation kernel. The effect is to "relax" the mesh, making the cells better shaped and the vertices more evenly distributed. Note that this filter operates on the lines, polygons, and triangle strips composing an instance of vtkPolyData. Vertex or poly-vertex cells are never modified.

The algorithm is described in "Optimal Surface Smoothing as Filter Design", G. Taubin, T. Zhang and G. Golub, IBM tech report RC-20404.

Methods ​

extend ​

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

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

getBoundarySmoothing ​

Get whether points on the boundary of the mesh are smoothed.

getEdgeAngle ​

Get the angle, in degrees, above which an edge between two adjacent boundary or feature edges is considered sharp and its vertex is fixed.

getFeatureAngle ​

Get the angle, in degrees, above which the edge between two adjacent polygons is a feature edge.

getFeatureEdgeSmoothing ​

Get whether feature edges are smoothed.

getGenerateErrorScalars ​

Get whether a scalar array holding the distance each point moved is added to the output.

getGenerateErrorVectors ​

Get whether a vector array holding the displacement of each point is added to the output.

getNonManifoldSmoothing ​

Get whether non-manifold vertices are smoothed.

getNormalizeCoordinates ​

Get whether the coordinates are normalized to the unit cube before smoothing and restored afterwards.

getNumberOfIterations ​

Get the degree of the Chebyshev polynomial approximating the filter.

getPassBand ​

Get the pass band of the windowed sinc filter, in [0, 2].

newInstance ​

Method used to create a new instance of vtkWindowedSincPolyDataFilter

ArgumentTypeRequiredDescription
initialValuesIWindowedSincPolyDataFilterInitialValuesNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setBoundarySmoothing ​

Set whether points on the boundary of the mesh are smoothed.

ArgumentTypeRequiredDescription
boundarySmoothingNumberYes

setEdgeAngle ​

Set the angle, in degrees, above which an edge between two adjacent boundary or feature edges is considered sharp and its vertex is fixed.

ArgumentTypeRequiredDescription
edgeAngleNumberYes

setFeatureAngle ​

Set the angle, in degrees, above which the edge between two adjacent polygons is a feature edge.

ArgumentTypeRequiredDescription
featureAngleNumberYes

setFeatureEdgeSmoothing ​

Set whether feature edges are smoothed.

ArgumentTypeRequiredDescription
featureEdgeSmoothingNumberYes

setGenerateErrorScalars ​

Set whether a scalar array holding the distance each point moved is added to the output.

ArgumentTypeRequiredDescription
generateErrorScalarsNumberYes

setGenerateErrorVectors ​

Set whether a vector array holding the displacement of each point is added to the output.

ArgumentTypeRequiredDescription
generateErrorVectorsNumberYes

setNonManifoldSmoothing ​

Set whether non-manifold vertices are smoothed.

ArgumentTypeRequiredDescription
nonManifoldSmoothingNumberYes

setNormalizeCoordinates ​

Set whether the coordinates are normalized to the unit cube before smoothing and restored afterwards.

ArgumentTypeRequiredDescription
normalizeCoordinatesNumberYes

setNumberOfIterations ​

Set the degree of the Chebyshev polynomial approximating the filter.

ArgumentTypeRequiredDescription
numberOfIterationsNumberYes

setPassBand ​

Set the pass band of the windowed sinc filter, in [0, 2].

ArgumentTypeRequiredDescription
passBandNumberYes

vtkWindowedSincPolyDataFilterExecute ​

Smooth inPts using the topology of inputPolyData and return the new point set. The error scalars and vectors, when requested, are added to output. Returns inPts unchanged when there is nothing to smooth.

ArgumentTypeRequiredDescription
inPtsvtkPointsYes
inputPolyDatavtkPolyDataYes
outputvtkPolyDataYes