Action:
|
Creates a two-dimensional B-spline curve specified as a sequence of control points, weights, and an associated knot vector.
|
|
Prototype:
|
bs2_curve bs2_curve_from_ctrlpts (
|
|
|
int degree,
|
|
// degree
|
|
|
logical rational,
|
|
// rational
|
|
|
logical closed,
|
|
// closed
|
|
|
logical periodic,
|
|
// periodic
|
|
|
int num_ctrlpts,
|
|
// number of control
|
|
|
|
|
|
// points
|
|
|
const SPAposition* ctrlpts[],// control points, x
|
|
|
|
|
|
// and y components
|
|
|
|
|
|
// only are used
|
|
|
const double weights[],
|
|
// weights
|
|
|
double,
|
|
// control point
|
|
|
|
|
|
// tolerance
|
|
|
int num_knots,
|
|
// number of knots
|
|
|
const double knots[],
|
|
// knots
|
|
|
double knot_tol
|
|
// knot tolerance
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/logical.h"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/spline/bs2_crv/bs2curve.hxx"
|
|
#include "kernel/spline/sg_bs2c/sps2crtn.hxx"
|
|
Description:
|
The control point tolerance and knot tolerance are used to determine when points or knots are the same. Only the
x and
y-components of the input positions are considered.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs2c/sps2crtn.hxx
|
|
Effect:
|
Changes model
|