hello everyone,
I’m working on a project that involves a 3D grid with a sorted data tree based on bounding boxes (as seen in the image). My goal is to randomly select a unique piece of geometry from each list in the data tree. This means no duplicates should be chosen from any individual list.
Attached Images:
- Initial Grid: This image shows the basic 3D grid structure.
- Data Tree (Bounding Box Representation): This image visually demonstrates the sorted data tree, where larger bounding boxes are positioned higher in the tree.
- Current output that i am getting now.
- Current Output (Front View): This image shows the current output with the issue of missing geometries, highlighting the need for unique selection.
- Script: This image displays my current Grasshopper definition, showcasing the components I’ve used so far.
My challenge:
I’m struggling to choose random elements from each sub-list in the sorted data tree while ensuring they are unique. I’ve tried using:
Random Item: This provides unweighted selection, not considering the sorted data.
Please feel free to ask for further details or clarifications on the specific components or logic I’m using.
Sincerely,
Jay Vayeda