Action:
|
Adds a knot to a B-spline at a given parameter value.
|
|
Prototype:
|
int bs3_curve_add_knot (
|
|
|
bs3_curve input,
|
// given curve, modified
|
|
|
|
|
// in place
|
|
|
double new_par,
|
// returned new knot
|
|
|
|
|
// value
|
|
|
int mult_req,
|
// returned new knot's
|
|
|
|
|
// multiplicity
|
|
|
double knot_tol
|
// returned knot
|
|
|
|
|
// tolerance
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/sg_bs3c/sps3crtn.hxx"
|
|
Description:
|
The routine returns the number of knots added. If the knot value to be added is an existing knot, the knot is inserted, provided the multiplicity of the current knot does not exceed the degree of the spline curve. The equality of the knots are tested using the tolerance given as input. The knot value must be within the parameter range of the input B-spline.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
Changes model
|