algorithmic modeling for Rhino
So far I managed to give each mesh face a solid colour according to its inclination. Next step would be to have more control over the colours and to have a legend which allows to have a better understanding of what happens.
For example I would like to be able to set intervals for the inclination and corresponding colors
1%-4% = blue
4%-8% = green
8%-10% = yellow
>10% = red
These settings should also end up in the legend component.
Maybe mesh explode and mesh colour are not the best way to do this?
Thank you in advance for your help!
The legend question was answered two days ago; there's a widget for that:
set intervals for the inclination and corresponding colors
This can be done but not with the 'Gradient' component. I did something similar here, rounding off color values to the nearest in a list of five:
Thanks for your answer Joseph.
My mesh has 322 faces and each face has an associated value between 0.00 and 1.00. Even if I round off my numbers to the closest 0.XX my legend still gets 322 labels which is not very handy.
I should be able somehow to group similar numbers or set an interval for the legend.
As you can see in the picture I only have three colors and I would like the legend to have only three labels as well, and not 322
I can't touch this without access to your GH code/data. Clearly though, you need to round off your values to just three: 0.16667, 0.5 or 0.83333?
This may be of help. You can ignore the first bit about cleaning, but it shows one way to define ranges and color faces that fall into those ranges.
Thanks guys this works for me! Great suggestion, I didnt know the CSet component