#include <HermiteAppC.h>
Public Member Functions | |
HermiteAppC (EvalCurve *crv, double tolerance1, double tolerance2) | |
Constructor where the tolerances and the curve to approximate are specified. | |
HermiteAppC (EvalCurve *crv, double initpars[], int n, double tolerance1, double tolerance2) | |
Constructor where the tolerances and the curve to approximate are specified, as well as the parameters for which we will sample the input curve before starting the approximating process. | |
~HermiteAppC () | |
Empty destructor. | |
void | refineApproximation () |
Refine the internal sampling of the curve to approximate such that the Hermite interpolated curve of this sampling approximates parametrically the original curve within the specified tolerance. | |
boost::shared_ptr< SplineCurve > | getCurve () |
Return the cubic spline curve Hermite interpolating the grid. |
The generated curve will approximate the EvalCurve within specified tolerances.
Definition at line 51 of file HermiteAppC.h.
Go::HermiteAppC::HermiteAppC | ( | EvalCurve * | crv, | |
double | tolerance1, | |||
double | tolerance2 | |||
) |
Constructor where the tolerances and the curve to approximate are specified.
crv | the curve that we want to generate a Hermite approximation of. The curve is not copied, only pointed to by the HermiteAppC. | |
tolerance1 | the required geometrical accuracy of approximation | |
tolerance2 | another tolerance, used for some kinds of EvalCurves |
Go::HermiteAppC::HermiteAppC | ( | EvalCurve * | crv, | |
double | initpars[], | |||
int | n, | |||
double | tolerance1, | |||
double | tolerance2 | |||
) |
Constructor where the tolerances and the curve to approximate are specified, as well as the parameters for which we will sample the input curve before starting the approximating process.
crv | the curve that we want to generate a Hermite approximation of. The curve is not copied, only pointed to by the HermiteAppC. | |
initpars | pointer to the array of parameter values for which we will sample the input curve. | |
n | number of parameter values in the array 'initpars'. | |
tolerance1 | the required geometrical accuracy of approximation | |
tolerance2 | another tolerance, used for some kinds of EvalCurves |
boost::shared_ptr<SplineCurve> Go::HermiteAppC::getCurve | ( | ) |
Return the cubic spline curve Hermite interpolating the grid.