31#ifndef vtkGeometricErrorMetric_h
32#define vtkGeometricErrorMetric_h
34#include "vtkCommonDataModelModule.h"
62 vtkGetMacro(AbsoluteGeometricTolerance,
double);
104 double alpha) VTK_OVERRIDE;
119 double GetError(
double *leftPoint,
double *midPoint,
120 double *rightPoint,
double alpha) VTK_OVERRIDE;
136 double Distance2LinePoint(
double x[3],
140 double AbsoluteGeometricTolerance;
defines dataset interface
Objects that compute error during cell tessellation.
Objects that compute geometry-based error during cell tessellation.
void SetRelativeGeometricTolerance(double value, vtkGenericDataSet *ds)
Set the geometric accuracy with a value relative to the length of the bounding box of the dataset.
static vtkGeometricErrorMetric * New()
Construct the error metric with a default squared absolute geometric accuracy equal to 1.
int GetRelative()
Return the type of output of GetError()
~vtkGeometricErrorMetric() override
void SetAbsoluteGeometricTolerance(double value)
Set the geometric accuracy with a squared absolute value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeometricErrorMetric()
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Does the edge need to be subdivided according to the distance between the line passing through its en...
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
a simple class to control print indentation