#DesignScript LM – Chapter 25-Part III – Geometric Booleans

Hi Everyone:

This is the third and last translation in a series of three from the twenty-fifth chapter of the DesignScript Language Manual and can be found at DSLM  (pages 74 &75) and is entitled;  Geometric Booleans. There is a companion video tutorial on the DS website’s tutorials, Boolean Operations on Geometry (18).

This manual translation was initially  made on the Autodesk DesignScript Community Forum and DesignScript.org. Now it can be found at can be found at Chapter 25: Geometric Booleans, Part 3(Note that it can be not longer be found on the Autodesk Labs Website, as linked)

Copy and paste the script from (page 75) the Design Script Language Manual into the DesignScript Editor.  Below shows the script in the  DS  Editor with the results of the code being run, and the window graphics inserted alongside for reference.

Chp_ 25_ Geometric Booleans.ds#3

Chp_ 25_ Geometric Booleans.ds#3

Now open DesignScript Studio and paste this same script into the canvas.

Chp_ 25_ Geometric Booleans#a3

Chp_ 25_ Geometric Booleans#a3

There is a little editing desired as high lighted above with the results shown below.

Chp_ 25_ Geometric Booleans#3a-edited

Chp_ 25_ Geometric Booleans#3a-edited

The initial DSS translation is shown below.

Chp.25_ Geometric Booleans#3

Chp.25_ Geometric Booleans#3

The intersect node that is obtained from the originating graph node [Sphere (s)] on-board context sensitive menu is shown below.

Chp_ 25_ Geometric Booleans#3a-insert

Chp_ 25_ Geometric Booleans#3a-insert

Continuing on with the more detailed and defined translation with the renaming of the variables, identifying and referencing them with their corresponding nodes.

Chp_ 25_ Geometric Booleans#3a

Chp_ 25_ Geometric Booleans#3a

As a reminder, selecting the graphic window one can get an enlarged view of each snapshot.

Another node detail is shown below, also a reminder that the nodes can illustrate previews by clicking on the three dots that complement the drop down image.

Chp-25_ Geometric Booleans#3-insert2

Chp-25_ Geometric Booleans#3-insert2

Continuing on to the “Node to Code” operation.

Chp-25_ Geometric Booleans#3b

Chp-25_ Geometric Booleans#3b

A little editing is desired.

Chp-25_ Geometric Booleans#3b-edited

Chp-25_ Geometric Booleans#3b-edited

The Graphic Window(s) that result from the script is shown below.

Chp_ 25_ Geometric Booleans#a3-Graphic Window

Chp_ 25_ Geometric Booleans#a3-Graphic Window

The other “Intersect” mentioned in the manual was a Cube & a Sphere and it is shown below.

Chp_ 25_ Geometric Booleans#a3-Graphic Window-2

Chp_ 25_ Geometric Booleans#a3-Graphic Window-2

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.

2015_04_16-chapter-25-Geometric Booleans#a3

2015_04_16-chapter-25-Geometric Booleans#a3-modified

2013_12_13-chapter-25_Geometric Booleans#3

2013_12_13-chapter-25_Geometric Booleans#3a

2015_04_17-chapter-25_Geometric Booleans#3b

2015-04-16-Chp- 25_ Geometric Booleans_ds#3

Thanks for looking.

T!M

 

 

 

 

 

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