VTK  9.5.20250910
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
131
132VTK_ABI_NAMESPACE_BEGIN
133class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkTriangleFilter : public vtkPolyDataAlgorithm
134{
135public:
138 void PrintSelf(ostream& os, vtkIndent indent) override;
139
141
147 vtkSetMacro(PreservePolys, vtkTypeBool);
148 vtkGetMacro(PreservePolys, vtkTypeBool);
149 vtkBooleanMacro(PreservePolys, vtkTypeBool);
151
153
159 vtkBooleanMacro(PassVerts, vtkTypeBool);
160 vtkSetMacro(PassVerts, vtkTypeBool);
161 vtkGetMacro(PassVerts, vtkTypeBool);
163
165
171 vtkBooleanMacro(PassLines, vtkTypeBool);
172 vtkSetMacro(PassLines, vtkTypeBool);
173 vtkGetMacro(PassLines, vtkTypeBool);
175
177
186 vtkSetMacro(Tolerance, double);
187 vtkGetMacro(Tolerance, double);
189
190protected:
192 : PassVerts(1)
193 , PassLines(1)
194 , PreservePolys(0)
195 , Tolerance(-1.0) // use default vtkPolygon::Tolerance
196 {
197 }
198 ~vtkTriangleFilter() override = default;
199
200 // Usual data generation method
202
206 double Tolerance;
207
208private:
209 vtkTriangleFilter(const vtkTriangleFilter&) = delete;
210 void operator=(const vtkTriangleFilter&) = delete;
211};
212
213VTK_ABI_NAMESPACE_END
214#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
#define VTK_MARSHALAUTO