VTK
|
Fill all 2D contours to create polygons. More...
#include <vtkContourTriangulator.h>
Fill all 2D contours to create polygons.
vtkContourTriangulator will generate triangles to fill all of the 2D contours in its input. The contours may be concave, and may even contain holes i.e. a contour may contain an internal contour that is wound in the opposite direction to indicate that it is a hole.
Definition at line 45 of file vtkContourTriangulator.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 49 of file vtkContourTriangulator.h.
vtkContourTriangulator::vtkContourTriangulator | ( | ) | [protected] |
vtkContourTriangulator::~vtkContourTriangulator | ( | ) | [protected] |
static vtkContourTriangulator* vtkContourTriangulator::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
static int vtkContourTriangulator::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkContourTriangulator::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkContourTriangulator* vtkContourTriangulator::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkContourTriangulator::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented from vtkPolyDataAlgorithm.
void vtkContourTriangulator::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkContourTriangulator::GetTriangulationError | ( | ) | [virtual] |
Check if there was a triangulation failure in the last update.
virtual void vtkContourTriangulator::SetTriangulationErrorDisplay | ( | int | ) | [virtual] |
Generate errors when the triangulation fails. Note that triangulation failures are often minor, because they involve tiny triangles that are too small to see.
virtual void vtkContourTriangulator::TriangulationErrorDisplayOn | ( | ) | [virtual] |
Generate errors when the triangulation fails. Note that triangulation failures are often minor, because they involve tiny triangles that are too small to see.
virtual void vtkContourTriangulator::TriangulationErrorDisplayOff | ( | ) | [virtual] |
Generate errors when the triangulation fails. Note that triangulation failures are often minor, because they involve tiny triangles that are too small to see.
virtual int vtkContourTriangulator::GetTriangulationErrorDisplay | ( | ) | [virtual] |
Generate errors when the triangulation fails. Note that triangulation failures are often minor, because they involve tiny triangles that are too small to see.
static int vtkContourTriangulator::TriangulatePolygon | ( | vtkIdList * | polygon, |
vtkPoints * | points, | ||
vtkCellArray * | triangles | ||
) | [static] |
A robust method for triangulating a polygon. It cleans up the polygon and then applies the ear-cut triangulation. A zero return value indicates that triangulation failed.
static int vtkContourTriangulator::TriangulateContours | ( | vtkPolyData * | data, |
vtkIdType | firstLine, | ||
vtkIdType | numLines, | ||
vtkCellArray * | outputPolys, | ||
const double | normal[3] | ||
) | [static] |
Given some closed contour lines, create a triangle mesh that fills those lines. The input lines must be single-segment lines, not polylines. The input lines do not have to be in order. Only numLines starting from firstLine will be used.
virtual int vtkContourTriangulator::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
int vtkContourTriangulator::TriangulationError [protected] |
Definition at line 92 of file vtkContourTriangulator.h.
int vtkContourTriangulator::TriangulationErrorDisplay [protected] |
Definition at line 93 of file vtkContourTriangulator.h.