Go to the documentation of this file.
31 #ifndef vtkGeometricErrorMetric_h
32 #define vtkGeometricErrorMetric_h
34 #include "vtkCommonDataModelModule.h"
62 vtkGetMacro(AbsoluteGeometricTolerance,
double);
104 double alpha)
override;
119 double GetError(
double *leftPoint,
double *midPoint,
120 double *rightPoint,
double alpha)
override;
static vtkGeometricErrorMetric * New()
Construct the error metric with a default squared absolute geometric accuracy equal to 1.
~vtkGeometricErrorMetric() override
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Objects that compute error during cell tessellation.
defines dataset interface
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...
a simple class to control print indentation
void SetRelativeGeometricTolerance(double value, vtkGenericDataSet *ds)
Set the geometric accuracy with a value relative to the length of the bounding box of the dataset.
double AbsoluteGeometricTolerance
void SetAbsoluteGeometricTolerance(double value)
Set the geometric accuracy with a squared absolute value.
double Distance2LinePoint(double x[3], double y[3], double z[3])
Square distance between a straight line (defined by points x and y) and a point z.
Objects that compute geometry-based error during cell tessellation.
vtkGeometricErrorMetric()
int GetRelative()
Return the type of output of GetError()