NurbsCurve3D.createRational Method
Parent Object:
NurbsCurve3DDefined in namespace "adsk::core" and the header file is <Core/Geometry/NurbsCurve3D.h>
Description
Creates a transient 3D NURBS rational b-spline object.
Syntax
This is a static method.
returnValue = adsk.core.NurbsCurve3D.createRational(controlPoints, degree, knots, weights, isPeriodic)
|
This is a static method.
#include <Core/Geometry/NurbsCurve3D.h>
returnValue = adsk::core::NurbsCurve3D::createRational(controlPoints, degree, knots, weights, isPeriodic);
|
Return Value
NurbsCurve3D |
Returns the new NurbsCurve3D object or null if the creation failed. |
Parameters
controlPoints |
Point3D[] |
An array of control point that define the path of the spline. |
degree |
integer |
The degree of curvature of the spline. |
knots |
double[] |
An array of numbers that define the knot vector of the spline. The knots is an array of (>=degree + N + 1) numbers, where N is the number of control points. |
weights |
double[] |
An array of numbers that define the weight at each control point. |
isPeriodic |
boolean |
A bool specifying if the spline is to be Periodic. A periodic curve has a start point and end point that meet (with curvature continuity) forming a closed loop. |
Version
Introduced in version August 2014