Grasshopper

algorithmic modeling for Rhino

Hi guys,

I have created a definition that produces a fractal of regular tetrahedron based on the Koch division. However I am trying to take the next stape and make it recursive with hoopsnake.

My definition essentially takes a regular tetrahedron, then creates a new tetrahedron base (triangle) by connecting the midpoints of the sides of each surface. Then it displaces the midpoint of this new base by the needed height for a regular tetrahedron alongside the normal vector of this surface.

The problem at the moment is that for one of the 3 intial surfaces I get a vector (0.0,0.0,0.0), which essentially is not a vector. This however does not happen when I do the whole process manually.

The result I am aiming for is essentially this.

I attach the definition icluding both the recursive definition as well as the manual one. If anyone has any input, it would be great.

Cheers,

T

Views: 5251

Attachments:

Replies to This Discussion

I have done differently and does not give problems.

Dani can you share how you did this?  Does it only work for triangles or other curves as well?

What expression are you using within the evaluate component?

Hi Dani,

somehow I missed this when you posted it. Great work!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service