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=========================================================================*/
51#ifndef vtkQuantizePolyDataPoints_h
52#define vtkQuantizePolyDataPoints_h
53
54#include "vtkCleanPolyData.h"
55#include "vtkFiltersGeneralModule.h" // For export macro
56
57class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
68 vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
69 vtkGetMacro(QFactor, double);
71
75 void OperateOnPoint(double in[3], double out[3]) override;
76
80 void OperateOnBounds(double in[6], double out[6]) override;
81
82protected:
84 ~vtkQuantizePolyDataPoints() override = default;
85
86 double QFactor;
87
88private:
90 void operator=(const vtkQuantizePolyDataPoints&) = delete;
91};
92
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:43
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