Action:
|
Sets the fit tolerance of a curve.
|
|
Prototype:
|
double bs3_curve_set_fitol (
|
|
|
int npoints,
|
// number of points
|
|
|
SPAposition const* pos,
|
// array of object space
|
|
|
|
|
// positions
|
|
|
double opt_tol
|
// starting value
|
|
|
|
= -1.0
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/spline/bs3_crv/sp3crtn.hxx"
|
|
Description:
|
Estimates a fit tolerance for interpolating the given set of initial points. It takes an initial value from the
fitol_curve_interp option if this is positive, otherwise it starts with
SPAresfit. Then it estimates the maximum curvature by fitting a circle to each consecutive set of three points, and, if necessary reduces the fit tolerance to an order of magnitude smaller than the corresponding minimum radius of curvature. As a sanity check, it never returns less than
SPAresabs.
|
|
|
If
fit_tol been set in the
fitol_curve_interp option, that is used as a starting value, otherwise
opt_tol is used if supplied. Otherwise the starting value is
SPAresfit.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/bs3_crv/sp3crtn.hxx
|
|
Effect:
|
System routine
|