NurbsCurve2D.createNonRational Method

Parent Object: NurbsCurve2D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/NurbsCurve2D.h>

Description

Creates a transient 2D NURBS non-rational b-spline object.

Syntax

This is a static method.

returnValue = adsk.core.NurbsCurve2D.createNonRational(controlPoints, degree, knots, isPeriodic)
This is a static method.

#include <Core/Geometry/NurbsCurve2D.h>

returnValue = adsk::core::NurbsCurve2D::createNonRational(controlPoints, degree, knots, isPeriodic);

Return Value

Type Description
NurbsCurve2D Returns the new NurbsCurve2D object or null if the creation failed.

Parameters

Name Type Description
controlPoints Point2D[] 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.
isPeriodic boolean A bool specifying if the spline is to be Periodic. A periodic spline has a start point and end point that meet forming a closed loop.

Version

Introduced in version August 2014