Tag Archives: BSplineCurve

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

Hi Everyone:

This is the fifth and the last  BSplineCurve file in the series of five curve type translations.  The DSE shows the link to the file “Geometry.Curve.BSplineCurve.ByPoints.TangentVectors.ds.” Open it by clicking on it and copy the resulting code into a DSS blank canvas.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors.ds#5

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors.ds#5

After the essential translation has been done we get a graph node canvas that has these connections. Arrangement of the nodes should suit ones sensibilities, so it most likely will be different.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5a

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5a

Note the this scripts points are arranged differently than in the previous file.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic

While this code Block showing P1 is being referred to twice,  its not going to be used, as the “set union” node will be, but it is showing that the arrangement of points need to be circuitous.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic-1

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic-1

This was checked, originally thinking it was an error, but it is correct in its intended definition.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic-2

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5_partial_graphic-2

If one uses the set union nodes in lieu of the code block ( i.e.. {p1,p2,p3,p4,p1} ), the “ Reorder node ” will be needed for the point indices to be in the correct order. The complete translation to graph node canvas is shown below.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5a

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5a

Satisfied with the translation, the “Code to Node” operation is performed.

2014_02_19-Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view

2014_02_19-Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view

Because the file translation is really too long to be easily edited, it was decided to break it into two large Code Blocks.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view-2

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view-2

It took a few attempts to get it broken into two blocks with the above partial view (2) being the first translation.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view_2

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view_2

After they were translated into two code blocks, a little editing was needed.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view_3

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b_partial view_3

The above shows the completed translation.

The resulting Graphic from these translations is shown below.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors- Windows Graphic.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors- Windows Graphic.

And the DSS files are available for downloading below.

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5a

Geometry.Curve.BSplineCurve.ByPoints.TangentVectors#5b

Thanks for looking

T!M

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

Hi Everyone:

On to the fourth BSplineCurve file, “Geometry.Curve.BSplineCurve.ByPoints.Periodicin the series of five Curve translations.  First, open the DSE application and view the resulting first page.

Geometry.Curve.BSplineCurve.ByPoints.Periodic.ds #4

Geometry.Curve.BSplineCurve.ByPoints.Periodic.ds #4

It’s not fair for Geometry to be misspelt. Couldn’t resist.  The file “Geometry.Curve.BSplineCurve.ByPoints.Periodicis very similar to the last file, (with the misspelling), so one should be able to rapidly go through the translation using the previous.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4a

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4

Of course the first file one might want to develop on its own, before using the previous file, but then maybe not.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4a

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4a

After ones satisfied with the translation, do the “Code to Node” translation. See below.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b

A few items can be cleaned up.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b-Graphic

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b-Graphic

2014_02_20-Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b_Graphic script

2014_02_20-Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b_Graphic script

Not much editing here, just a little housecleaning for a more compact file. The finished file is shown below.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4c

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4c

The resulting Windows Graphic from the various file forms can be seen below.

Geometry.Curve.BSplineCurve.ByPoints.Periodic #4 Windows Graphic

Geometry.Curve.BSplineCurve.ByPoints.Periodic #4
Windows Graphic

 

The files are available for downloading below.

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4a

Geometry.Curve.BSplineCurve.ByPoints.Periodic#4b

Thanks for looking.

T!M