Does anyone have experience with recursion? I’m trying to implement a simple procedure in Csharp that recursively fragments a mesh.
A Tree datastructure is used because nested lists returned errors. However, when I feed a data stream back to itself, it returns :
- Recursive data stream found, this component depends on itself
Might anyone have advice on this? Are datatrees the way to go? Is it possible to do this in a single Csharp component? The purpose is this exercise is pure curiosity: I want to learn how to implement recursion in Csharp.
Attached is a clean file with a “hacked” version that works and the broken component…
STD - recursion - clean.gh(15.5 KB)
Thanks in advance for any pointers.