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.
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.
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.
Here is the general translation above while the specifics of the error and the alternative method is shown below.
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.
The “BSplineCurve” node was used as the “contextCurve”(s) to develop the properties of the “myCompositeCurve”.
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.
A little editing is in order as highlighted.
The graphic that is generated from the code is shown below.
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.
Thanks for looking.