VTK  9.3.1
vtkQuantizePolyDataPoints.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
30 #ifndef vtkQuantizePolyDataPoints_h
31 #define vtkQuantizePolyDataPoints_h
32 
33 #include "vtkCleanPolyData.h"
34 #include "vtkFiltersGeneralModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
49  vtkGetMacro(QFactor, double);
51 
55  void OperateOnPoint(double in[3], double out[3]) override;
56 
60  void OperateOnBounds(double in[6], double out[6]) override;
61 
62 protected:
64  ~vtkQuantizePolyDataPoints() override = default;
65 
66  double QFactor;
67 
68 private:
70  void operator=(const vtkQuantizePolyDataPoints&) = delete;
71 };
72 
73 VTK_ABI_NAMESPACE_END
74 #endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells ...
virtual void OperateOnPoint(double in[3], double out[3])
Perform operation on a point.
#define VTK_FLOAT_MAX
Definition: vtkType.h:152
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void OperateOnBounds(double in[6], double out[6])
Perform operation on bounds.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCleanPolyData * New()
quantizes x,y,z coordinates of points