Tuesday, 1 May 2012

Discrete Textiles

Inspired by the work of Elisa Strozyk, I wrote a script, that imposes a specific length to all edges of a given mesh. For triangulated input meshes, this results in equilateral triangles as faces. Download the python script for Rhino here.

The final geometry is a discrete representation of a crumpled developable surface, if the mesh is consisting only of nodes with the valence of six and of triangular faces. More digitally crumpled surfaces by Tamahiro Tachi on flickr.
A crumpled mesh torus.

8 comments:

Anders said...

Hi Lorenz, looks very interesting! Would love to check out the source, however the download link appears to be broken..

Lorenz Lachauer said...

Hi Anders, I just fixed the link. Best, Lorenz.

Anders said...

Thanks Lorenz, much appreciated. I have recently started using Python in Rhino. Examples such as the one you have posted here are a great resource for learning. So thanks again. Best, Anders

Simon said...

Hi Lorenz,
what Imputs are needed? Do I need a mesh from rhino or from grasshopper? When I copy the content to the Pyton-editor I get following Errormessage by testing the script:

Runtime error (NotImplementedException): Die Methode oder der Vorgang sind nicht implementiert.
Traceback:
line 293, in GetObjects, "C:\Users\Simon\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\selection.py"
line 9, in Crumple, ""
line 72, in script


What am I doing wrong?

Lorenz Lachauer said...

Hi Simon,

I cannot reproduce your error, it should work with all meshes from rhino (with not too many faces). It works with my Rhino 5 version. Maybe reset your script engine -> Tools -> Reset Script Engine, and Enable Frames in tools -> Options -> Script Engine, and then restart Rhino. Best, Lorenz.

Lorenz Lachauer said...

Hi Simon,

I cannot reproduce your error, it should work with all meshes from rhino (with not too many faces). It works with my Rhino 5 version. Maybe reset your script engine -> Tools -> Reset Script Engine, and Enable Frames in tools -> Options -> Script Engine, and then restart Rhino. Best, Lorenz.

Simon said...

Thanks, now it works. What should I say... pretty cool tool ;)

Mohammad reza Gholami said...

Hi Lorenz, the link of script does not work correctly
I can`t download that.

Related Posts Plugin for WordPress, Blogger...