This is the fifth of six DesignScript SubDivisionMesh translations, from the Surface category of the DS Editor (DSE) Samples.
Open the file Geometry.Surface.SubDivisionMesh.FromGeometry.ds, in the DS Editor and run it. The script is shown below.
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.
Click on the Geometry section on the page and see the Geometry Abstract structure of the Design Script Program.
Open the highlighted SubDivisionMesh section.
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.
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.
Note the highlighted commenting out which must be deleted in order to activate the code. Again this file draws the same errors.
The preliminary translation is shown above, while the developed translation is shown below.
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.
The “Node to Code” operation as shown above.
The geometry that results from the various code translations is shown below.
DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.
Thanks for looking.