Branches by Looping

by Tuğrul Yazar | May 9, 2014 10:34

While testing Anemone components for Grasshopper[1], I accidentally generated these branches by looping[2]. In fact, I was trying to develop the definition that mimics the well-known “Arch SED” component method. This method uses the tangent vectors[3] for the endpoints of the arcs. Then, it iterates the process in a random fashion[4] so that the branches (arcs) join nicely. Anyway, this definition develops new branches from a previous one. It does this by using three graph mappers for the position, rotation, and length changes. If you play with these graph mappers, you’ll see the Anemone[5] updates itself automatically. Thus, finally collecting the outcomes in a data recorder[6] component to see the variations. To trigger the process, the number slider or the graph mappers should be modified.

leaves of looping example
leaves of looping example
leaves of looping example
2014_05_05-loopleaf-def[7]

There are still interesting possibilities with the branches by looping algorithm. However, it seems there are some performance issues with it. If you want to generate outcomes quicker, you need either a powerful computer or a better algorithm than mine.

Below is the Grasshopper definition if you want to play with it. I checked the algorithm in August 2021, and it still works. However, I say that the algorithm could have been much simpler. I didn’t touch it to keep the originality. The Anemone components are marked with “Old”, but it is still working nicely. I am curious when the developer would include the looping in native Grasshopper. It is probably not a technical issue. But due to the fact that looping breaks the data tree matching approach of Grasshopper. I am not following such issues lately, but I am happy to see the backward compatibility is a huge plus for Grasshopper.

[GHX: 0.9.0072][8]Download[9]

Endnotes:
  1. Grasshopper: https://www.designcoding.net/category/tools-and-languages/grasshopper/
  2. looping: https://www.designcoding.net/?s=loop
  3. vectors: https://www.designcoding.net/?s=vector
  4. random fashion: https://www.designcoding.net/?s=random
  5. Anemone: https://www.food4rhino.com/en/app/anemone
  6. data recorder: https://www.designcoding.net/?s=data+recorder
  7. [Image]: https://www.designcoding.net/decoder/wp-content/uploads/2014/04/2014_05_05-loopleaf-def.jpg
  8. [GHX: 0.9.0072]: https://www.designcoding.net/decoder/wp-content/uploads/2014/04/2014_05_09-loopleaf.ghx
  9. Download: https://www.designcoding.net/decoder/wp-content/uploads/2014/04/2014_05_09-loopleaf.ghx

Source URL: https://www.designcoding.net/branches-by-looping/