Grasshopper

algorithmic modeling for Rhino

Hi All,

I'm trying to create a deforming pyritohedron in grasshopper (please see link below)

http://en.wikipedia.org/wiki/Rhombic_dodecahedron#mediaviewer/File:...

I have currently managed to create the cube stage and the rhombic dodecahedron stage by defining two variables, the distance of the vertices from the face:

(for a cube the distance in 0, for a rhombic dodecahedron the distance in 5)

And the length of the line.

(for a cube this is the full length of an edge, for a rhombic dodecahedron this is 0)

Can anyone tell me the equation that links these two variables so that I can go from a cube to a dodecahedron by only changing one slider?

Thanks 

Sarah

Views: 737

Attachments:

Replies to This Discussion

You should get used to working with branches, it simplifies everything...Hope you serve this!

Attachments:

I forget this ... e.e

Thanks Daniel -

Thats a much neater script, I need to teach myself to use branches - my scripts aren't concise!

Did you manage to create a transforming Pyritohedron? When I altered the length of the line in the file you sent me it slightly skewed the cube but did not deform into any other regular polyhedrons (certainly didn't show the shapes you attached!) am I missing a plug in?

Thanks again

Sarah

Attachments:

You need another definition for other polyhedra, probably. If you want to follow a logic like this, especially you have to change the vectors of proyect Point component. Extract that parameter and see it with vector display to understand it.

Sorry one last thing Daniel - I can't tell what that component is with 'Average' written underneath it. What is that component called?

Vector tab > Point panel > Cull duplicates component

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service