#include <Approximation.h>
Public Member Functions | |
| float | Fit () |
| Pure virtual function to fit the geometry to the given points. | |
| PolynomialFit () | |
| Construction. | |
| float | Value (float x, float y) const |
| virtual | ~PolynomialFit () |
| Destruction. | |
Protected Attributes | |
| float | _fCoeff [9] |
Definition at line 472 of file Approximation.h.
| PolynomialFit::PolynomialFit | ( | ) |
Construction.
Definition at line 686 of file Approximation.cpp.
References _fCoeff, and SketcherExample::f.
| PolynomialFit::~PolynomialFit | ( | ) | [virtual] |
Destruction.
Definition at line 692 of file Approximation.cpp.
| float PolynomialFit::Fit | ( | ) | [virtual] |
Pure virtual function to fit the geometry to the given points.
This function must be implemented by every subclass.
Implements MeshCore::Approximation.
Definition at line 696 of file Approximation.cpp.
References _fCoeff, MeshCore::Approximation::_vPoints, FLOAT_MAX, Wm4::PolyFit3< float >(), MovieTool::x, and MovieTool::y.
Referenced by MeshCore::AbstractPolygonTriangulator::ProjectOntoSurface().
| float PolynomialFit::Value | ( | float | x, | |
| float | y | |||
| ) | const |
Definition at line 720 of file Approximation.cpp.
References _fCoeff.
Referenced by MeshCore::AbstractPolygonTriangulator::ProjectOntoSurface().
float MeshCore::PolynomialFit::_fCoeff[9] [protected] |
Definition at line 488 of file Approximation.h.
Referenced by Fit(), PolynomialFit(), and Value().
1.6.1