Action:
|
Creates a cubic curve which is supplied as B-spline vertexes and knot values.
|
|
Prototype:
|
bs3_curve bs3_curve_construct (
|
|
|
int nkts,
|
|
// number of knots
|
|
|
const SPAposition* vertices,
|
// vertices
|
|
|
double* knots,
|
|
// list of knots
|
|
|
int mult
|
|
// multiplicity
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/d3_bs3/spd3rtn.hxx"
|
|
Description:
|
The number of knots is given, and the multiplicities of internal knots (the end knots have multiplicity 3).
|
|
|
vertices is an array containing the three or two space vertices. It should contain
mult*(nkts-2)+4 values.
|
|
|
knots is an array of nkts distinct knot values.
|
|
|
mult is the multiplicity of the internal knots. The end knots always get a multiplicity of three.
|
|
|
The form of the curve must be set after construction. The form of the underlying spline curve is set during the construction.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/d3_bs3/spd3rtn.hxx
|
|
Effect:
|
Changes model
|