VTK  9.2.6
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=========================================================================*/
42#ifndef vtkQuantizePolyDataPoints_h
43#define vtkQuantizePolyDataPoints_h
44
45#include "vtkCleanPolyData.h"
46#include "vtkFiltersGeneralModule.h" // For export macro
47
48class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetClampMacro(QFactor, double, 1E-5, VTK_FLOAT_MAX);
60 vtkGetMacro(QFactor, double);
62
66 void OperateOnPoint(double in[3], double out[3]) override;
67
71 void OperateOnBounds(double in[6], double out[6]) override;
72
73protected:
75 ~vtkQuantizePolyDataPoints() override = default;
76
77 double QFactor;
78
79private:
81 void operator=(const vtkQuantizePolyDataPoints&) = delete;
82};
83
84#endif
merge duplicate points, and/or remove unused points and/or remove degenerate cells
a simple class to control print indentation
Definition vtkIndent.h:40
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