The FunctionToBspline class can be used to approximate an arbitrary 3D function with a B-Spline. More...
#include <CFunctionToBspline.h>
Public Member Functions | |
double | ApproxError () |
returns the error made by spline approximation More... | |
CFunctionToBspline (MathFunc3d &f, double umin, double umax, int degree, double tolerance=1e-5, int maxDepth=10) | |
CFunctionToBspline - Constructor. More... | |
Handle (Geom_BSplineCurve) Curve() | |
Computes the B-Spline approximation. More... | |
~CFunctionToBspline () | |
Private Attributes | |
CFunctionToBsplineImpl * | pimpl |
The FunctionToBspline class can be used to approximate an arbitrary 3D function with a B-Spline.
The function to approximate is given by 3 separate functions, one for the x values, one for y-values and one for the z-values.
tigl::CFunctionToBspline::CFunctionToBspline | ( | MathFunc3d & | f, |
double | umin, | ||
double | umax, | ||
int | degree, | ||
double | tolerance = 1e-5 , |
||
int | maxDepth = 10 |
||
) |
CFunctionToBspline - Constructor.
f | Function returning the values of the curve |
umin | Start parameter of the function to approximate |
umax | End parameter of the function to approximate |
degree | Degree of the resulting B-Spline |
tolerance | Maximum approximation error |
maxDepth | Maximum depth of curve splitting -> Influences resulting segment number |
tigl::CFunctionToBspline::~CFunctionToBspline | ( | ) |
double tigl::CFunctionToBspline::ApproxError | ( | ) |
returns the error made by spline approximation
tigl::CFunctionToBspline::Handle | ( | Geom_BSplineCurve | ) |
Computes the B-Spline approximation.
|
private |