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
30#ifndef vtkQuantizePolyDataPoints_h
31#define vtkQuantizePolyDataPoints_h
32
33#include "vtkCleanPolyData.h"
34#include "vtkFiltersGeneralModule.h" // For export macro
35
36VTK_ABI_NAMESPACE_BEGIN
37class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
38{
39public:
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
62protected:
64 ~vtkQuantizePolyDataPoints() override = default;
65
66 double QFactor;
67
68private:
70 void operator=(const vtkQuantizePolyDataPoints&) = delete;
71};
72
73VTK_ABI_NAMESPACE_END
74#endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells
a simple class to control print indentation
Definition vtkIndent.h:29
quantizes x,y,z coordinates of points
~vtkQuantizePolyDataPoints() override=default
void OperateOnPoint(double in[3], double out[3]) override
Perform quantization on a point.
static vtkQuantizePolyDataPoints * New()
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.
#define VTK_FLOAT_MAX
Definition vtkType.h:152