#DesignScript LM – Chapter 15-Part III: Translation, Rotation, and Other Transformations

Hi Everyone:

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.

chapter 15Translation_Rotation& other_Trans_4_indices

chapter 15Translation_Rotation& other_Trans_4_indices

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.

cube_indices_surface#1a-xyz location

cube_indices_surface#1a-xyz location

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.

cube_indices_surface#1a-orientation

cube_indices_surface#1a-orientation

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.

cube_indices_surface#1a-orientation2

cube_indices_surface#1a-orientation2

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.

cube_indices_surface#1a

cube_indices_surface#1a

The cubes indices are at first identified if they are in the  (-) negative or (+) positive quadrant of the node graph.

cube_indices_surface

cube_indices_surface

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.

cube_indices_surface#3

cube_indices_surface#3

The cube can be further explored for it’s properties in relation to it’s indices as shown in the DS Studio canvas below.

2014_06_23-functions_w_makeDiagonal_-testalt_with_color_guide#1

2014_06_23-functions_w_makeDiagonal_-testalt_with_color_guide#1

Below is show the edges being identified with the faces being color coded.

cube_indices_a_windows graphic

cube_indices_a_windows graphic

The next image that is generated from the file shows the cubes surface being colored accordingly.

color cube faces

color cube faces

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.

2014_06_20-cube_indices_surface

2014_06_23-makeDiagonal_test_alt-with_color_guide

Thanks for looking.

T!M

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s