VTK  9.6.1
vtkSmoothPolyDataFilter.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
85
86#ifndef vtkSmoothPolyDataFilter_h
87#define vtkSmoothPolyDataFilter_h
88
89#include "vtkFiltersCoreModule.h" // For export macro
91#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
92#include <memory> // For std::unique_ptr<>
93
94VTK_ABI_NAMESPACE_BEGIN
95class vtkSmoothPoints;
96
98{
99public:
108
110
115 void PrintSelf(ostream& os, vtkIndent indent) override;
117
119
123 vtkSetClampMacro(Convergence, double, 0.0, 1.0);
124 vtkGetMacro(Convergence, double);
126
128
131 vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
132 vtkGetMacro(NumberOfIterations, int);
134
136
143 vtkSetMacro(RelaxationFactor, double);
144 vtkGetMacro(RelaxationFactor, double);
146
148
155
157
160 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
161 vtkGetMacro(FeatureAngle, double);
163
165
169 vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
170 vtkGetMacro(EdgeAngle, double);
172
174
181
183
190
192
199
201
209
211
216 vtkSetMacro(OutputPointsPrecision, int);
217 vtkGetMacro(OutputPointsPrecision, int);
219
220protected:
223
225 int FillInputPortInformation(int port, vtkInformation* info) override;
226
232 double EdgeAngle;
237
238 std::unique_ptr<vtkSmoothPoints> SmoothPoints;
239
240private:
242 void operator=(const vtkSmoothPolyDataFilter&) = delete;
243};
244
245VTK_ABI_NAMESPACE_END
246#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
int FillInputPortInformation(int port, vtkInformation *info) override
std::unique_ptr< vtkSmoothPoints > SmoothPoints
~vtkSmoothPolyDataFilter() override
void SetSourceData(vtkPolyData *source)
Specify the source object which is used to constrain smoothing.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print the state of a class instance.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPolyData * GetSource()
Specify the source object which is used to constrain smoothing.
static vtkSmoothPolyDataFilter * New()
Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned o...
int vtkTypeBool
Definition vtkABI.h:64
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO