Action:
|
Gets the dimension, degree, rationality, control points, weights, and knots for a 3D B-spline curve.
|
|
Prototype:
|
void bs3_curve_to_array (
|
|
|
bs3_curve bs,
|
// given curve
|
|
|
int& dim,
|
// returned dimension
|
|
|
int& deg,
|
// returned degree
|
|
|
logical& rat,
|
// returned rational
|
|
|
int& num_ctrlpts,
|
// returned number of
|
|
|
|
|
// control points
|
|
|
SPAposition*& ctrlpts,
|
// returned control
|
|
|
|
|
// points
|
|
|
double*& weights,
|
// returned weights
|
|
|
int& num_knots,
|
// returned number of
|
|
|
|
|
// knots
|
|
|
double*& knots
|
// knots
|
|
|
);
|
|
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:
|
This function creates arrays of control points, weights, and knot points. It is up to the application to delete these arrays.
|
|
|
If the curve is rational (i.e.,
rat =
TRUE), an array of weights is returned. Otherwise, the weight array is
NULL. Uses only the
x- and
y-components of the positions returned as the control points.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
Read-only
|