vtkPolyDataPointSampler

Section: Visualization Toolkit Graphics Classes

Usage

vtkPolyDataPointSampler generates points from input vtkPolyData. The points are placed approximately a specified distance apart.

This filter functions as follows. First, it regurgitates all input points, then samples all lines, plus edges associated with the input polygons and triangle strips to produce edge points. Finally, the interiors of polygons and triangle strips are subsampled to produce points. All of these functiona can be enabled or disabled separately. Note that this algorithm only approximately generates points the specified distance apart. Generally the point density is finer than requested.

To create an instance of class vtkPolyDataPointSampler, simply invoke its constructor as follows

  obj = vtkPolyDataPointSampler

Methods

The class vtkPolyDataPointSampler has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkPolyDataPointSampler class.