Hi Everyone:
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.
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.
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.
On to the translation back to script. (“Node to Code”)
Note the highlighted lines of script. Taking a closer look.
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.
Here is the full translation after editing.
And below find the Windows Graphic for this Translation.
Now find the files available for download below.
Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1
Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1a
Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1b
Thanks for looking
T!M