vtkPolygon

Section: Visualization Toolkit Filtering Classes

Usage

vtkPolygon is a concrete implementation of vtkCell to represent a 2D n-sided polygon. The polygons cannot have any internal holes, and cannot self-intersect. Define the polygon with n-points ordered in the counter- clockwise direction; do not repeat the last point.

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

  obj = vtkPolygon

Methods

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