VTK  9.3.0
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
39 #ifndef vtkQuantizePolyDataPoints_h
40 #define vtkQuantizePolyDataPoints_h
41 
42 #include "vtkCleanPolyData.h"
43 #include "vtkFiltersGeneralModule.h" // For export macro
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
58  vtkGetMacro(QFactor, double);
60 
64  void OperateOnPoint(double in[3], double out[3]) override;
65 
69  void OperateOnBounds(double in[6], double out[6]) override;
70 
71 protected:
73  ~vtkQuantizePolyDataPoints() override = default;
74 
75  double QFactor;
76 
77 private:
79  void operator=(const vtkQuantizePolyDataPoints&) = delete;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells
a simple class to control print indentation
Definition: vtkIndent.h:38
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