Autodesk Creative Platform Core Version 1.19.0
A broad and deep collection of 2D and 3D capabilities.

Curve2D Overview

Derived Classes: Bezier2D, Line2D

A base class for all 2D curve types. It points at a certain curve in the path2D by the index, and helps to navigate through the curve list within Path2D

Introduced in Version: 1.1.0

Class Member Summary

Class Member Details

Boolean isRemoved()

Checks whether this curve is removed

Curve2D next()

Gets the next curve which can be an instance of Line2D or Bezier2D

1 Example:

// Iterate the Path2D data using Curve2D
var curve2DObj = path2d.firstCurve();
while (curve2DObj) {
    if (curve2DObj instanceof Line2D) {
      ...
    } else if (curve2DObj instanceof Bezier2D) {
      ...
    }
    curve2DObj = curve2DObj.next();
}

Curve2D prev()

Gets the prev curve which can be an instance of Line2D or Bezier2D

Curve2D remove() | Chainable

Removes this curve from the owning Path2D.