Category Archives: Polygon

DesignScript Curve Translation,Geometry.Polygon.Trim#2 – Code to Node to Code

Hi Everyone:

This is the second of two Polygon file translations. The file Geometry.Polygon.Trim.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Polygon.Trim.ds#2

Geometry.Polygon.Trim.ds#2

Open the file Geometry.Polygon.Trim.ds in the DS Editor, the resulting script is shown below.

Geometry.Polygon.Trim-ds#2

Geometry.Polygon.Trim-ds#2

Open DS Studio, and paste the DSE script,Geometry.Polygon.Trim.ds into a blank canvas.

Geometry.Polygon.Trim-a2

Geometry.Polygon.Trim-a2

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Polygon.Trim#2

Geometry.Polygon.Trim#2

The preliminary translation looks like the canvas shown above and the developed one below.

Geometry.Polygon.Trim#2a

Geometry.Polygon.Trim#2a

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.

Geometry.Polygon.Trim2b

Geometry.Polygon.Trim2b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Polygon.Trim-Graphic Window

Geometry.Polygon.Trim-Graphic Window

The files are available to download from the DropBox links below.

Geometry.Polygon.Trim#2

Geometry.Polygon.Trim#a2

Geometry.Polygon.Trim#2a

Geometry.Polygon.Trim#2b

Thanks for looking.

T!M

Advertisements

DesignScript Curve Translation,Geometry.Polygon.ByVertices#1 – Code to Node to Code

Hi Everyone:

This is the first of two Polygon file translations. The file Geometry.Polygon.ByVertices.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Polygon.ByVertices-ds

Geometry.Polygon.ByVertices-ds

Open the file Geometry.Polygon.ByVertices.ds in the DS Editor, the resulting script is shown below.

Geometry.Polygon.ByVertices_ds

Geometry.Polygon.ByVertices_ds

Open DS Studio, and paste the DSE script, Geometry.Polygon.ByVertices.ds into a blank canvas.

Geometry.Polygon.ByVertices#a1

Geometry.Polygon.ByVertices#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Polygon.ByVertices#1

Geometry.Polygon.ByVertices#1

The preliminary translation looks like the canvas shown above and the developed one below.

Geometry.Polygon.ByVertices#1a

Geometry.Polygon.ByVertices#1a

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.

Geometry.Polygon.ByVertices#1b

Geometry.Polygon.ByVertices#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Polygon.ByVertices-Graphic Window

Geometry.Polygon.ByVertices-Graphic Window

The files are available to download from the DropBox links below.

Geometry.Polygon.ByVertices#1

Geometry.Polygon.ByVertices#1a

Geometry.Polygon.ByVertices#a1

Geometry.Polygon.ByVertices#1b

Thanks for looking.

T!M