VTK  9.2.6
vtkContourTriangulator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkContourTriangulator.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
53#ifndef vtkContourTriangulator_h
54#define vtkContourTriangulator_h
55
56#include "vtkFiltersGeneralModule.h" // For export macro
58
59class vtkCellArray;
60class vtkIdList;
61
62class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
63{
64public:
66
71 void PrintSelf(ostream& os, vtkIndent indent) override;
73
75
78 vtkGetMacro(TriangulationError, int);
80
82
87 vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
88 vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
89 vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
91
97 static int TriangulatePolygon(vtkIdList* polygon, vtkPoints* points, vtkCellArray* triangles);
98
106 static int TriangulateContours(vtkPolyData* data, vtkIdType firstLine, vtkIdType numLines,
107 vtkCellArray* outputPolys, const double normal[3]);
108
109protected:
112
114 vtkInformationVector* outputVector) override;
115
118
119private:
121 void operator=(const vtkContourTriangulator&) = delete;
122};
123
124#endif
object to represent cell connectivity
Fill all 2D contours to create polygons.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
static vtkContourTriangulator * New()
Standard methods for instantiation, obtaining type information, and printing.
static int TriangulateContours(vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines, vtkCellArray *outputPolys, const double normal[3])
Given some closed contour lines, create a triangle mesh that fills those lines.
static int TriangulatePolygon(vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles)
A robust method for triangulating a polygon.
~vtkContourTriangulator() override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
list of point or cell ids
Definition vtkIdList.h:43
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:49
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:69
int vtkIdType
Definition vtkType.h:332