Skip to content

FillHolesFilter ​

Introduction ​

vtkFillHolesFilter is a filter that identifies and fills holes in input vtkPolyData meshes. Holes are identified by locating boundary edges, linking them together into loops, and then triangulating the resulting loops. Note that you can specify an approximate limit to the size of the hole that can be filled.

The VTK.js implementation follows the same algorithmic approach as VTK C++.

Methods ​

extend ​

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

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

getHoleSize ​

Get the maximum hole size to fill.

newInstance ​

Method used to create a new instance of vtkFillHolesFilter.

ArgumentTypeRequiredDescription
initialValuesIFillHolesFilterInitialValuesNofor pre-setting some of its content

requestData ​

Expose methods.

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setHoleSize ​

Set the maximum hole size to fill.

ArgumentTypeRequiredDescription
holeSizeYes