vtkRegularPolygonSource

Section: Visualization Toolkit Graphics Classes

Usage

vtkRegularPolygonSource is a source object that creates a single n-sided polygon and/or polyline. The polygon is centered at a specified point, orthogonal to a specified normal, and with a circumscribing radius set by the user. The user can also specify the number of sides of the polygon ranging from [3,N].

This object can be used for seeding streamlines or defining regions for clipping/cutting.

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

  obj = vtkRegularPolygonSource

Methods

The class vtkRegularPolygonSource 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 vtkRegularPolygonSource class.