Go::HermiteAppC Class Reference
['geometry' - a spline library]

This class is used to generate a SplineCurve from a EvalCurve using Hermite interpolation. More...

#include <HermiteAppC.h>

List of all members.

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< SplineCurvegetCurve ()
 Return the cubic spline curve Hermite interpolating the grid.


Detailed Description

This class is used to generate a SplineCurve from a EvalCurve using Hermite interpolation.

The generated curve will approximate the EvalCurve within specified tolerances.

Definition at line 51 of file HermiteAppC.h.


Constructor & Destructor Documentation

Go::HermiteAppC::HermiteAppC ( EvalCurve crv,
double  tolerance1,
double  tolerance2 
)

Constructor where the tolerances and the curve to approximate are specified.

Parameters:
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.

Parameters:
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


Member Function Documentation

boost::shared_ptr<SplineCurve> Go::HermiteAppC::getCurve (  ) 

Return the cubic spline curve Hermite interpolating the grid.

Returns:
the cubic spline curve that Hermite interpolates the sampled points of the EvalCurve specified in the constructor.


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:18 2007 for GoTools Core Library by  doxygen 1.5.1