VTK  9.3.20240318
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
49 #ifndef vtkQuantizePolyDataPoints_h
50 #define vtkQuantizePolyDataPoints_h
51 
52 #include "vtkCleanPolyData.h"
53 #include "vtkFiltersGeneralModule.h" // For export macro
54 
55 VTK_ABI_NAMESPACE_BEGIN
56 class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
67  vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
68  vtkGetMacro(QFactor, double);
70 
74  void OperateOnPoint(double in[3], double out[3]) override;
75 
79  void OperateOnBounds(double in[6], double out[6]) override;
80 
81 protected:
83  ~vtkQuantizePolyDataPoints() override = default;
84 
85  double QFactor;
86 
87 private:
89  void operator=(const vtkQuantizePolyDataPoints&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells
a simple class to control print indentation
Definition: vtkIndent.h:108
quantizes x,y,z coordinates of points
~vtkQuantizePolyDataPoints() override=default
void OperateOnPoint(double in[3], double out[3]) override
Perform quantization on a point.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OperateOnBounds(double in[6], double out[6]) override
Perform quantization on bounds.
static vtkQuantizePolyDataPoints * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:152