This is the twenty-third, in a series of twenty-four Point file translations. The file Geometry.Point.SortByDistance.ds is located in the DesignScript Editor (DSE) Sample files.
Open the file Geometry.Point.SortByDistance.ds in the DS Editor, the resulting script is shown below.
Open DS Studio, and paste the DSE script, Geometry.Point.SortByDistance.ds into a blank canvas.
The preliminary translation looks like the canvas shown above and the developed one below.
The red and yellow highlighted areas indicate the groupings of nodes according to their properties. Once satisfied that the translation is complete the “Node to Code” operation can take place.
A little bit of editing is desired in the “Node to Code” translation as highlighted.
The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.
The files are available to download from the DropBox links below.
Thanks for looking.