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

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).

DSE (Design Script Editor) Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1

DSE (Design Script Editor)
Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1

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

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

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.

In lieu of the Set Union Node, use a code block.

In lieu of the Set Union Node, use a code block.

On to the translation back to script. (“Node to Code”)

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

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

Note the highlighted lines of script. Taking a closer look.

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1b-Partial graphic

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1b-Partial graphic

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.

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

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

And below find the Windows Graphic for this Translation.

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1_Windows Graphic

Geometry.Curve.BSplineCurve.ByControlVertices.Degree#1_Windows Graphic

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s