VTK  9.2.5
vtkSmoothErrorMetric.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSmoothErrorMetric.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=========================================================================*/
34#ifndef vtkSmoothErrorMetric_h
35#define vtkSmoothErrorMetric_h
36
37#include "vtkCommonDataModelModule.h" // For export macro
39
41
42class VTKCOMMONDATAMODEL_EXPORT vtkSmoothErrorMetric : public vtkGenericSubdivisionErrorMetric
43{
44public:
50
52
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
64
71 void SetAngleTolerance(double value);
72
92 double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
93
107 double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
108
109protected:
112
115
116private:
118 void operator=(const vtkSmoothErrorMetric&) = delete;
119};
120
121#endif
defines dataset interface
Objects that compute error during cell tessellation.
a simple class to control print indentation
Definition: vtkIndent.h:40
Objects that compute geometry-based error during cell tessellation according to some max angle.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
~vtkSmoothErrorMetric() override
static vtkSmoothErrorMetric * New()
Construct the error metric with a default flatness threshold of 90.1 degrees.
double GetAngleTolerance()
Return the flatness threshold.
void SetAngleTolerance(double value)
Set the flatness threshold with an angle in degrees.
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Does the edge need to be subdivided according to the cosine between the two chords passing through th...
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.