I am trying to create a random pattern of 4 colors. I managed to create a script in Grasshopper that does it for 2, but cannot replicate it for 4. Here is a screenshot of the way it looks now, but I need 4 different colors, and preferably I’d like for there to be an even number of each color pane. (There are 828 panes, so 207 panes per color.)
Hello
if you don’t want contiguous cells with the same color you can use my nColor tool from Nautilus plugin
I had some difficulties has some panes are not joined so I joined them but I need a tolerance of 0.1. But it seems It joined other panes … Also as panes are not near the topology is calculated using curves and a tolerance equal to more than the gap. If not, there is a bug in my tool as there could be isolated object meaning they have no neighbor!
If you open the definition and have some problem like here
If purple it means it was not possible to have just 4 colors.
The components also output cells with “bad” color.
When I open the file and re-set the BREP, the colors do not appear. I ask it to bake again and it recreates the surfaces and also creates meshes. Any suggestions on how to fix whatever I’m doing wrong?