#DesignScript -Geometry.Surface.SubDivisionMesh.FromGeometry#5- Code to Node to Code

 Hi Everyone:

This is the fifth of six DesignScript SubDivisionMesh translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.SubDivisionMesh.FromGeometry-ds#5

Geometry.Surface.SubDivisionMesh.FromGeometry-ds#5

Open the file Geometry.Surface.SubDivisionMesh.FromGeometry.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5

Again note that the script is drawing errors from the DSE as shown in highlighted portion of the code. Taking a look at the DS Editors Help screen menu.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry2

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry2

Click on the Geometry section on the page and see the Geometry Abstract structure of the Design Script Program.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry1

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry1

Open the highlighted SubDivisionMesh section.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry

At the top of the page as highlighted one sees that the SubDivisionMesh Class is not supported in Design Script Studio Alpha nor in DS Editor Lite. Since this is what we are running, one might try this running as a plugin for AutoCAD.

Looking for a work around would be based upon creating a SubDivisionMesh on the surface geometry, in this case by faceting the  surface. This is another file that needs some help from a DesignScript enthusiast.

Nonetheless lets continue with the work that can be done with what we have. Open DS Studio, copy & paste the DSE script, Geometry.Surface.SubDivisionMesh.FromGeometry.ds, into a blank canvas.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5-editing

Geometry.Surface.SubDivisionMesh.FromGeometry#a5-editing

Note the highlighted commenting out which must be deleted in order to activate the code. Again this file draws the same errors.

Geometry.Surface.SubDivisionMesh.FromGeometry#5

Geometry.Surface.SubDivisionMesh.FromGeometry#5

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

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 the list of unexecuted properties.  Again, this needs work.

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

The “Node to Code” operation as shown above.

Geometry.Surface.SubDivisionMesh.FromGeometry#5b-edited

Geometry.Surface.SubDivisionMesh.FromGeometry#5b-edited

The geometry that results from the various code translations is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5a-Graphic Window

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5a-Graphic Window

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Geometry.Surface.SubDivisionMesh.FromGeometry#5

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

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 )

Connecting to %s