Grasshopper

algorithmic modeling for Rhino

Create legend with intervals for mesh face inclination

Hi All,

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

ex:

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!

Views: 360

Reply to This

Replies to This Discussion

The legend question was answered two days ago; there's a widget for that:

http://www.grasshopper3d.com/forum/topics/create-numeric-legend-fro...

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:
http://www.grasshopper3d.com/forum/topics/image-sampler-with-rgba-i...

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?

Does this help?

Attachments:

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.

http://www.grasshopper3d.com/forum/topics/cull-delete-faces-in-mesh...

I don't have your plugins but thanks for the reminder about 'Find Domain (FDom)'.  This is much better:

Attachments:

Thanks guys this works for me! Great suggestion, I didnt know the CSet component

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service