Action:
|
Determines the parameter value of a near-point to the given point on the curve.
|
|
Prototype:
|
double bs3_curve_invert (
|
|
|
SPAposition const& pos,
|
// given point
|
|
|
double,
|
// given tolerance
|
|
|
bs3_curve cur,
|
// given curve
|
|
|
SPAparameter const&
|
// guess parameter
|
|
|
|
param_guess
|
// guess parameter
|
|
|
|
=*(SPAparameter*)NULL_REF
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/vector/param.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/bs3_crv/sp3crtn.hxx"
|
|
Description:
|
If a guess for the parameter value is supplied, it is assumed to be a good one, so that a close local minimum of distance may be determined. If there is no guess, it is assumed that there is at most one point of minimum distance within the specified tolerance. If the point is near one end of the curve, then there may be no algebraic minimum of the distance function, but the end point itself may be the near point.
|
|
Errors:
|
Returns an error if point is not within given tolerance of curve.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/bs3_crv/sp3crtn.hxx
|
|
Effect:
|
Read-only
|