VTK  9.4.20241217
vtkTriangleFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
125#ifndef vtkTriangleFilter_h
126#define vtkTriangleFilter_h
127
128#include "vtkFiltersCoreModule.h" // For export macro
129#include "vtkPolyDataAlgorithm.h"
130
131VTK_ABI_NAMESPACE_BEGIN
132class VTKFILTERSCORE_EXPORT vtkTriangleFilter : public vtkPolyDataAlgorithm
133{
134public:
137 void PrintSelf(ostream& os, vtkIndent indent) override;
138
140
146 vtkSetMacro(PreservePolys, vtkTypeBool);
147 vtkGetMacro(PreservePolys, vtkTypeBool);
148 vtkBooleanMacro(PreservePolys, vtkTypeBool);
150
152
158 vtkBooleanMacro(PassVerts, vtkTypeBool);
159 vtkSetMacro(PassVerts, vtkTypeBool);
160 vtkGetMacro(PassVerts, vtkTypeBool);
162
164
170 vtkBooleanMacro(PassLines, vtkTypeBool);
171 vtkSetMacro(PassLines, vtkTypeBool);
172 vtkGetMacro(PassLines, vtkTypeBool);
174
176
185 vtkSetMacro(Tolerance, double);
186 vtkGetMacro(Tolerance, double);
188
189protected:
191 : PassVerts(1)
192 , PassLines(1)
193 , PreservePolys(0)
194 , Tolerance(-1.0) // use default vtkPolygon::Tolerance
195 {
196 }
197 ~vtkTriangleFilter() override = default;
198
199 // Usual data generation method
201
205 double Tolerance;
206
207private:
208 vtkTriangleFilter(const vtkTriangleFilter&) = delete;
209 void operator=(const vtkTriangleFilter&) = delete;
210};
211
212VTK_ABI_NAMESPACE_END
213#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
convert input polygons and strips to triangles
static vtkTriangleFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTriangleFilter() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int vtkTypeBool
Definition vtkABI.h:64