DesignScript Curve Translation, Geometry.Curve.Composite.WithTolerence#8 – Code to Node to Code

 

Hi Everyone:

This is the eighth, in a series of forty-nine curve file translations. The file, Geometry.Curve.Composite.WithTolerence.ds, is from the DesignScript Editor (DSE) Sample files.

Geometry.Curve.Composite.WithTolerence#8

Geometry.Curve.Composite.WithTolerence#8

Some may notice that a previous Composite file, Geometry.Curve.Composite.ds#1 has an error which was not only the misspelling of “Geometry,” which is correct in this case, but that the Composite  command did not fully function.

Geometry.Curve.Composite.WithTolerence#8-error

Geometry.Curve.Composite.WithTolerence#8-error

Like in the previous case Composite Curve fails while a single curve doesn’t. So like the previous translations we will make due with what we have and use one of the curves to illustrate the complete translation. Lets take a look at what we have.

Geometry.Curve.Composite.WithTolerence#8

Geometry.Curve.Composite.WithTolerence#8

Here is the general translation above while the specifics of the error and the alternative method is shown below.

Geometry.Curve.Composite.WithTolerence#8-error2

Geometry.Curve.Composite.WithTolerence#8-error2

Note the Block Node that has the implicit leads from the curves. Normally,  because we are trying to use library graph nodes, the alternative “Set Union” for the curves is not shown. In any case the error is quite plainly seen. The alternative is shown below.

Geometry.Curve.Composite.WithTolerence#8a-edited

Geometry.Curve.Composite.WithTolerence#8a-edited

The “BSplineCurve” node was used as the “contextCurve”(s) to develop the properties of the “myCompositeCurve”.

Geometry.Curve.Composite.WithTolerence#8a

Geometry.Curve.Composite.WithTolerence#8a

The completed Node Graph DSS canvas is shown above. (rather, as complete as can be at this time)

On to the “Node to Code” conversion.

Geometry.Curve.Composite.WithTolerence#8b-edit

Geometry.Curve.Composite.WithTolerence#8b-edit

A little editing is in order as highlighted.

Geometry.Curve.Composite.WithTolerence#8b-edited

Geometry.Curve.Composite.WithTolerence#8b-edited

The graphic that is generated from the code is shown below.

Geometry.Curve.Composite.WithTolerence#8-Graphic Window

Geometry.Curve.Composite.WithTolerence#8-Graphic Window

As usual, liberty was taken with adding color and this was done with the stand alone version of DesignScript. The files are available for downloading from the links (DropBox) below.

Geometry.Curve.Composite.WithTolerence#8

Geometry.Curve.Composite.WithTolerence#8a

Geometry.Curve.Composite.WithTolerence#8b

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s