VTK  9.1.0
vtkQuantizePolyDataPoints.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkQuantizePolyDataPoints.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
61#ifndef vtkQuantizePolyDataPoints_h
62#define vtkQuantizePolyDataPoints_h
63
64#include "vtkCleanPolyData.h"
65#include "vtkFiltersGeneralModule.h" // For export macro
66
67class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
68{
69public:
72 void PrintSelf(ostream& os, vtkIndent indent) override;
73
75
78 vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
79 vtkGetMacro(QFactor, double);
81
85 void OperateOnPoint(double in[3], double out[3]) override;
86
90 void OperateOnBounds(double in[6], double out[6]) override;
91
92protected:
94 ~vtkQuantizePolyDataPoints() override = default;
95
96 double QFactor;
97
98private:
100 void operator=(const vtkQuantizePolyDataPoints&) = delete;
101};
102
103#endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells
a simple class to control print indentation
Definition: vtkIndent.h:113
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:163