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=========================================================================*/
63#ifndef vtkContourTriangulator_h
64#define vtkContourTriangulator_h
65
66#include "vtkFiltersGeneralModule.h" // For export macro
68
69class vtkCellArray;
70class vtkIdList;
71
72class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
73{
74public:
76
81 void PrintSelf(ostream& os, vtkIndent indent) override;
83
85
88 vtkGetMacro(TriangulationError, int);
90
92
97 vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
98 vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
99 vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
101
107 static int TriangulatePolygon(vtkIdList* polygon, vtkPoints* points, vtkCellArray* triangles);
108
116 static int TriangulateContours(vtkPolyData* data, vtkIdType firstLine, vtkIdType numLines,
117 vtkCellArray* outputPolys, const double normal[3]);
118
119protected:
122
124 vtkInformationVector* outputVector) override;
125
128
129private:
131 void operator=(const vtkContourTriangulator&) = delete;
132};
133
134#endif
object to represent cell connectivity
Definition: vtkCellArray.h:296
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:143
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:149
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
@ points
Definition: vtkX3D.h:452
@ data
Definition: vtkX3D.h:321
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332