CURVE - v14
CURVE deg=<value>, periodic={ 1|0 }, rational={ 1|0 },
ncpts=<value>, ctps=<p-array>,
knots=<value>, knot=<n_array>, mults=<n_array>,
{, weight=<n_array>} {, min=<value>} {, max=<value>}
Function
Add a Curve entity to the model.
Parameters
|
deg= |
The degree of the curve. |
|
|
|
|
periodic= |
Flag that indicates if the curve is periodic (1) or not (0). |
|
rational= |
Flag that indicates if the curve is rational (1) or not (0). |
|
ncpts= |
The number of control points |
|
cpts= |
The array of control points |
|
nknots= |
The number of knot values. These must be real values, not decreasing and in the range [0,1] |
|
mults= |
The multiplicities on the knots. These must be integer values. |
|
weight= |
The weights on control points. These must be real values. Larger values on the control point indicate that the curve should be closer to the control point. |
|
min= |
The minimum U value. It must be in the range [0,1). |
|
max= |
The maximum U value. It must be in the range (0,1]. |
Examples:
CURVE DEG=4, PERIODIC=0, NCPTS=7, CPTS=parr[1], NKNOTS=4, KNOT=knots[1], MULTS=mult[1], WEIGHT=weight[1]
CURVE RATIONAL=0, NCPTS=7, CPTS=parr[1], WEIGHT=weight[1]
Notes
The resulting object is a new Curve entity.
Note that the weights must be specified only for rational B-Spline curves.
Also, note that the following formula must be verified:
NCPTS = SUM( MULTS(i), I=1, NKNOTS ) - DEG - 1
The previous CURVE command applicable to Standard versions has been renamed to XCURVE
See also