VTK  9.0.1
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 =========================================================================*/
31 #ifndef vtkSmoothErrorMetric_h
32 #define vtkSmoothErrorMetric_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
36 
37 class vtkGenericDataSet;
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkSmoothErrorMetric : public vtkGenericSubdivisionErrorMetric
40 {
41 public:
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
61 
68  void SetAngleTolerance(double value);
69 
89  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
90 
104  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
105 
106 protected:
109 
111  double CosTolerance;
112 
113 private:
115  void operator=(const vtkSmoothErrorMetric&) = delete;
116 };
117 
118 #endif
vtkSmoothErrorMetric
Objects that compute geometry-based error during cell tessellation according to some max angle.
Definition: vtkSmoothErrorMetric.h:40
vtkSmoothErrorMetric::GetError
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
vtkX3D::alpha
@ alpha
Definition: vtkX3D.h:256
vtkSmoothErrorMetric::CosTolerance
double CosTolerance
Definition: vtkSmoothErrorMetric.h:111
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkSmoothErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmoothErrorMetric::RequiresEdgeSubdivision
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...
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:49
vtkSmoothErrorMetric::New
static vtkSmoothErrorMetric * New()
Construct the error metric with a default flatness threshold of 90.1 degrees.
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:70
vtkSmoothErrorMetric::GetAngleTolerance
double GetAngleTolerance()
Return the flatness threshold.
vtkSmoothErrorMetric::AngleTolerance
double AngleTolerance
Definition: vtkSmoothErrorMetric.h:110
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSmoothErrorMetric::vtkSmoothErrorMetric
vtkSmoothErrorMetric()
vtkSmoothErrorMetric::~vtkSmoothErrorMetric
~vtkSmoothErrorMetric() override
vtkGenericSubdivisionErrorMetric.h
vtkSmoothErrorMetric::SetAngleTolerance
void SetAngleTolerance(double value)
Set the flatness threshold with an angle in degrees.