Hi Everyone:
This is the third part of the translation Curves: Interpreted And Control Points, from chapter thirteenth of the DesignScript Language Manual.
To reiterate, the manual can be found at DSLM , (pages 40-43) and is entitled; There also is a companion video tutorial on – Curves: Splines, BSplineCurves, Interpolation (#10), which can be found in the DS website’s tutorials. This is a continuation (of part 2) initial manual translation and it can be found at can be found at Chapter 13, Curves: Interpreted (part 2) (Note that it can be not longer be found on the Autodesk Labs Website, as linked.)
This expanded post shows separate curves that are constructed with control points so as they can appear as one smooth curve.
Open the DS Editor and create a new file, lets copy and paste the second page of code from this chapter (chap-13, pages40) into the Editor. Run it, and observe that their aren’t any errors generated, as illustrated and highlighted below.
The same can be pasted into a blank canvas of DesignScript Studio.
Edited out the commenting out so the script will be activated, but first make sure that the imported statements are commented out. As it is developed on the DS Studio canvas the nodes take the place of the script. Below is what the DS Studio canvas looked like in the initial translation.
A more detailed and defined translation was done and involved naming the variables to identify and reference into them to their corresponding nodes is shown below.
Then with the naming and identifying complete, the “Node to Code” operation can take place.
The Windows Graphic that is generated from the files, as shown below.
Note that colors were added in this translation, to highlight the geometry in the Graphic view window. Reiterating, this was done on the stand-alone version of DesignScript, rather than as a plugin for AutoCAD. The files are available for downloading from the Drop-Box links below.
2014_02_10_chapter13_Curves_Interpreted&Control_Points_part#a3
2013_10_08-long-chp_13h-curve_interpolated&control_pt-tutorial#3
2014_02_10_chapter13_Curves_Interpreted&Control_Points_part#3a
2014_02_11_chapter13_Curves_Interpreted&Control_Points_part#3b
Thanks for looking.
T!M