This is the third part of the translation from the fifteenth chapter of the DesignScript Language Manual. It can be found at DSLM (pages 47-49) and is entitled; Translation, Rotation, and Other Transformations. There also is a companion video tutorial entitled, Transform method (#11), which can be found in the DS website’s tutorials.
Reiterating this is what was posted on deriving cube indices that can still be viewed over at the original designscript.ning.com website, now lets look further into this translation.
In any file that is opened, DSS opens with a certain graphic orientation. By placing a point on the XYZ coordinates the view can be deciphered.
When a cube is generated in Design Script Studio with the XYZ coordinates identified the opening view looks like the image above.
By rotating the Graphic Window the orientation can be changed to a more conventional view for identifying the XYZ coordinate locations.
The following DS Studio file was made to be able to breakdown the cube and be able to identify and locate the various indices and their sequence to aid in generating subdivision mesh geometry.
The cubes indices are at first identified if they are in the (-) negative or (+) positive quadrant of the node graph.
The image above shows this view and the sequence of placement of the cubes vertices. If one matches the image from the Graphic Window while developing the canvas the image would look more like below.
The cube can be further explored for it’s properties in relation to it’s indices as shown in the DS Studio canvas below.
Below is show the edges being identified with the faces being color coded.
The next image that is generated from the file shows the cubes surface being colored accordingly.
The solid colors corresponds to the cubes geometry as defined in DS code graph.
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.
Thanks for looking.