DesignScript Curve Translation, BSplineCurve#2– Code to Node to Code

The second of five BSplineCurve files, in a series of Curve translations, is entitled “Geometry.Curve.BSplineCurve.ByControlVertices.Periodic#2,” and is referenced below. To access it, open the DSE and it will be visible on the opening page. (Please note that this translation was done with the standalone version of the DesignScript Editor (DSE) and the DesignScript Studio (DSS).

Geometry.Curve.BSplineCurve.ByControlVertices.Periodic.ds

Please note the misspelt “Geoemtry“, instead of Geometry. We are going to have to bear with this till Autodesk updates the Editor. (Hint)

After doing the usual translation, one get a Graph Node canvas looking similar to below.

Geometry.Curve.BSplineCurve.ByControlVertices.Periodic#2a

Note that the previous file was a BSplineCurveByVertices, without the Periodic property. So it’s recommended to edit the first file’s developed translation node and change the central node to BSplineCurveByVertices.Periodic, thereby eliminating a lot of duplication of the various property nodes. See the full translation below.

Geometry.Curve.BSplineCurve.ByControlVertices.Periodic#2a

When satisfied that the translation is complete enough, the Node to Code operation is enacted.

Geometry.Curve.BSplineCurve.ByControlVertices.Periodic#2b-Script on the Canvas

The resulting Graph Window can be seen below.

Geometry.Curve.BSplineCurve.ByControlVertices.Periodic#2-Graph Window

The BSplineCurve.ByControlVertices.Periodic#2 files are available for download below.