VTK  9.5.20250910
vtkStaticCleanPolyData.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
64#ifndef vtkStaticCleanPolyData_h
65#define vtkStaticCleanPolyData_h
66
67#include "vtkFiltersCoreModule.h" // For export macro
69#include "vtkStaticPointLocator.h" // For enums
70#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
71
72VTK_ABI_NAMESPACE_BEGIN
74{
75public:
77
81 void PrintSelf(ostream& os, vtkIndent indent) override;
84
86
91 vtkSetMacro(ToleranceIsAbsolute, bool);
92 vtkBooleanMacro(ToleranceIsAbsolute, bool);
93 vtkGetMacro(ToleranceIsAbsolute, bool);
95
97
101 vtkSetClampMacro(Tolerance, double, 0.0, 1.0);
102 vtkGetMacro(Tolerance, double);
104
106
109 vtkSetClampMacro(AbsoluteTolerance, double, 0.0, VTK_DOUBLE_MAX);
110 vtkGetMacro(AbsoluteTolerance, double);
112
114
125 vtkSetStringMacro(MergingArray);
126 vtkGetStringMacro(MergingArray);
128
130
133 vtkSetMacro(ConvertLinesToPoints, bool);
134 vtkBooleanMacro(ConvertLinesToPoints, bool);
135 vtkGetMacro(ConvertLinesToPoints, bool);
137
139
142 vtkSetMacro(ConvertPolysToLines, bool);
143 vtkBooleanMacro(ConvertPolysToLines, bool);
144 vtkGetMacro(ConvertPolysToLines, bool);
146
148
151 vtkSetMacro(ConvertStripsToPolys, bool);
152 vtkBooleanMacro(ConvertStripsToPolys, bool);
153 vtkGetMacro(ConvertStripsToPolys, bool);
155
157
163 vtkSetMacro(RemoveUnusedPoints, bool);
164 vtkBooleanMacro(RemoveUnusedPoints, bool);
165 vtkGetMacro(RemoveUnusedPoints, bool);
167
169
176 vtkSetMacro(ProduceMergeMap, bool);
177 vtkBooleanMacro(ProduceMergeMap, bool);
178 vtkGetMacro(ProduceMergeMap, bool);
180
182
190 vtkSetMacro(AveragePointData, bool);
191 vtkBooleanMacro(AveragePointData, bool);
192 vtkGetMacro(AveragePointData, bool);
194
196
201 vtkSetMacro(OutputPointsPrecision, int);
202 vtkGetMacro(OutputPointsPrecision, int);
204
210 vtkGetObjectMacro(Locator, vtkStaticPointLocator);
211
213 // This filter is difficult to stream. To produce invariant results, the
214 // whole input must be processed at once. This flag allows the user to
215 // select whether strict piece invariance is required. By default it is
216 // on. When off, the filter can stream, but results may change.
217 vtkSetMacro(PieceInvariant, bool);
218 vtkGetMacro(PieceInvariant, bool);
219 vtkBooleanMacro(PieceInvariant, bool);
221
226
227protected:
229 ~vtkStaticCleanPolyData() override = default;
230
231 // Usual data generation method
234
235 double Tolerance;
247
248 // Internal locator for performing point merging
250
251private:
253 void operator=(const vtkStaticCleanPolyData&) = delete;
254};
255
256VTK_ABI_NAMESPACE_END
257#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.
Hold a reference to a vtkObjectBase instance.
merge duplicate points, and/or remove unused points and/or remove degenerate cells
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMTimeType GetMTime() override
Get the MTime of this object also considering the locator.
static vtkStaticCleanPolyData * New()
Standard methods to instantiate, print, and provide type information.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, print, and provide type information.
vtkSmartPointer< vtkStaticPointLocator > Locator
~vtkStaticCleanPolyData() override=default
quickly locate points in 3-space
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_DOUBLE_MAX
Definition vtkType.h:171
#define VTK_MARSHALAUTO