MeshCore::PolynomialFit Class Reference
#include <Approximation.h>
Public Member Functions | |
| float | Fit () |
| Pure virtual function to fit the geometry to the given points. More... | |
| PolynomialFit () | |
| Construction. More... | |
| float | Value (float x, float y) const |
| virtual | ~PolynomialFit () |
| Destruction. More... | |
Public Member Functions inherited from MeshCore::Approximation | |
| void | AddPoint (const Base::Vector3f &rcVector) |
| Add point for the fit algorithm. More... | |
| void | AddPoints (const MeshPointArray &points) |
| Add points for the fit algorithm. More... | |
| void | AddPoints (const std::list< Base::Vector3f > &rsPointList) |
| Add points for the fit algorithm. More... | |
| void | AddPoints (const std::set< Base::Vector3f > &rsPointSet) |
| Add points for the fit algorithm. More... | |
| void | AddPoints (const std::vector< Base::Vector3f > &rvPointVect) |
| Add points for the fit algorithm. More... | |
| Approximation () | |
| Construction. More... | |
| void | Clear () |
| Deletes the inserted points and frees any allocated resources. More... | |
| unsigned long | CountPoints () const |
| Determines the number of the current added points. More... | |
| bool | Done () const |
| Returns true if Fit() has been called for the current set of points, false otherwise. More... | |
| Base::Vector3f | GetGravity () const |
| Returns the center of gravity of the current added points. More... | |
| float | GetLastResult () const |
| Returns the result of the last fit. More... | |
| const std::list< Base::Vector3f > & | GetPoints () const |
| Get all added points. More... | |
| virtual | ~Approximation () |
| Destroys the object and frees any allocated resources. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MeshCore::Approximation | |
| void | GetMgcVectorArray (std::vector< Wm4::Vector3< double > > &rcPts) const |
| Creates a vector of Wm4::Vector3 elements. More... | |
Constructor & Destructor Documentation
◆ PolynomialFit()
| PolynomialFit::PolynomialFit | ( | ) |
Construction.
◆ ~PolynomialFit()
|
virtual |
Destruction.
Member Function Documentation
◆ Fit()
|
virtual |
Pure virtual function to fit the geometry to the given points.
This function must be implemented by every subclass.
Implements MeshCore::Approximation.
Referenced by MeshCore::AbstractPolygonTriangulator::PostProcessing().
◆ Value()
| float PolynomialFit::Value | ( | float | x, |
| float | y | ||
| ) | const |
Referenced by MeshCore::AbstractPolygonTriangulator::PostProcessing().
The documentation for this class was generated from the following files:
- src/Mod/Mesh/App/Core/Approximation.h
- src/Mod/Mesh/App/Core/Approximation.cpp
Public Member Functions inherited from
1.8.17