Action:
|
Creates a 3D B-spline curve specified as a sequence of control points, weights, and an associated knot vector.
|
|
Prototype:
|
bs3_curve bs3_curve_from_ctrlpts (
|
|
|
int degree,
|
// degree
|
|
|
logical rational,
|
// rational
|
|
|
logical closed,
|
// closed
|
|
|
logical periodic,
|
// periodic
|
|
|
int num_ctrlpts,
|
// number of control
|
|
|
|
|
// points
|
|
|
const SPAposition
|
// control points
|
|
|
|
ctrlpts[],
|
// array
|
|
|
const double weights[],
|
// weights array
|
|
|
double ctrlpt_tol,
|
// control point
|
|
|
|
|
// tolerance
|
|
|
int num_knots,
|
// number of knots
|
|
|
const double knots[],
|
// knots array
|
|
|
double knot_tol,
|
// knot tolerance
|
|
|
const int& dimension
|
// control point
|
|
|
|
=*(int*)NULL_REF
|
// dimension specified in
|
|
|
|
|
// ctrlpts array.
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/logical.h"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/sg_bs3c/sps3crtn.hxx"
|
|
Description:
|
The control point tolerance and knot tolerance are used to determine when control points or knots are the same. If an error occurs, a
NULL curve is returned.
|
|
|
Allowed values for control point dimension are 1, 2 or 3. Default value is 3 corresponding to x, y and z.
|
|
|
Note
|
Control dimension does NOT depend on rational or non-rational.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
Changes model
|