generative modeling for Rhino
I'm using a script i found online to panel a surface with hexagons. Everything is fine, however i want to add on to the script. This particular script creates a hexagonal panelling between two surfaces and lofts the hexagons with one another.. what i want to do is find the center point of the hexagons on the second surface (which i figured out how to do) scale each hexagon by 0.5, and move the scaled hexagons normal to the surface. Finally, i want to loft the original hexagons on the surface with the moved,scaled hexagons...
the problem i am having is with the lists (i think). I have 108 hexagons, and so i find 108 center points, and so 108 'normal' vectors, however when i put that into the move component, not only do i get extra hexagons.. but also they aren't moving on the normal vector. However, when i put the hexagons through the list item.. and go through each hexagon one by one.. they work fine :s
Regarding the scale, i get even much more unpredictable results, the hexagons aren't scaling with their center points, (even though I'm plugging them into the scale component).
that was a mouthful i know,,
Please download the rhino file and the definition from this link
.. any help would be much appreciated!!
Thanks very much Lucas for your reply, and for helping with the definition.
Can you please explain the logic behind the data sets that were not allowing it to work. flattening the curves created one data set, however grafting it then created another.
Lucas is the king of hexagons!
Fantastic! So does mine, so I understand. Good to see you continuing to give your amazing advice my friend. It's truly a good thing you do.
Hi Mohammed! it didnt work because data were not in the same path to could intersect. i cheked the lists with a list item and the items were in the correct possition but the only thing were the path structure. When ive flattened the two lists and grafted i create a new lists with the same path in every list. Hope helps ;)
you've been a great help Lucas :)))))))