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

Continuing on with Curve translations, this is the first in a series of five BSplineCurve files. The first of these, “Geometry.Curve.BSplineCurve.ByControlVertices.Degree”, 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).

Note that so far we have not witnessed any mistakes in the program files, but here are the first series with “Geometry” being spelt “Geoemtry” which most likely is incorrect. We are know that copying is a big tedium and time saver, but sometimes copying can lead to problems.

The first run at the translation is shown below. The translation is on the left side and the original script is pasted in on the right side.

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1

After translating the remainder of my”properties”, one should have a node graph that identifies each of the lines of script, similar to what is shown below.

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1a

It might be mentioned that in Lieu of the “Set Union” graph nodes that are being used that one may use a code block which will serve the same purpose. However, since this blog is about Translations, using “Graph Node’s” in lieu of lines of code, hence the Set Union graph nodes.

The first line can be deleted because in this case we used the “Set Union Nodes”.

The second line can be combined into one line like in previous examples. And for those of you that notice there still is a highlighted Variable further down the list, note that that was an error whereby a translation was overlooked.