DesignScript Curve Translation,Geometry.Solid.NonManifoldSolid.ThinShell#1- Code to Node to Code

Hi Everyone:

This is another one of one file translations that is a Solid, but is a NonManifold Solid . The file Geometry.Solid.NonManifoldSolid.ThinShell.ds is located in the DesignScript Editor (DSE) Sample files. Unfortunately this file generates an error, so it cannot execute it’s operation. This is another file which needs to be worked on. 🙂

Nonetheless, lets take a look at it.

Geometry.Solid.NonManifoldSolid.ThinShell.ds#1

Geometry.Solid.NonManifoldSolid.ThinShell.ds#1

Open the file Geometry.Solid.NonManifoldSolid.ThinShell.ds in the DS Editor, the resulting script is shown below.

Geometry.Solid.NonManifoldSolid.ThinShell-ds#1

Geometry.Solid.NonManifoldSolid.ThinShell-ds#1

The errors are highlighted, beginning with the nonManifoldSolid.ThinShell command not executing and not returning a solid. Again lets continue. Open DS Studio, and paste the DSE script, Geometry.Solid.NonManifoldSolid.ThinShell.ds into a blank canvas.

Geometry.Solid.NonManifoldSolid.ThinShell#a1

Geometry.Solid.NonManifoldSolid.ThinShell#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” script as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place. The Graphic icon that is seen at the bottom of the script has been pasted in to show what the Graphic Window contains.

Geometry.Solid.NonManifoldSolid.ThinShell#1

Geometry.Solid.NonManifoldSolid.ThinShell#1

The preliminary translation shows the error returning “Method resolution failure on ThinShell ( )” notice.

The developed translation is shown below.

Geometry.Solid.NonManifoldSolid.ThinShell#1a

Geometry.Solid.NonManifoldSolid.ThinShell#1a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file. Note that the ThinShell node doesn’t produce output for the properties nodes.

Going as far as we can go with this file we continue with the “Node to Code” operation.

Geometry.Solid.NonManifoldSolid.ThinShell#1b

Geometry.Solid.NonManifoldSolid.ThinShell#1b

The only editing that is done here is to eliminate some redundancy.

Geometry.Solid.NonManifoldSolid.ThinShell#1b-edited

Geometry.Solid.NonManifoldSolid.ThinShell#1b-edited

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

Geometry.Solid.NonManifoldSolid.ThinShell-Windows Graphic

Geometry.Solid.NonManifoldSolid.ThinShell-Windows Graphic

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

Geometry.Solid.NonManifoldSolid.ThinShell#1

Geometry.Solid.NonManifoldSolid.ThinShell#a1

Geometry.Solid.NonManifoldSolid.ThinShell#1a

Geometry.Solid.NonManifoldSolid.ThinShell#1b

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s