Grasshopper

algorithmic modeling for Rhino

Hi all,

 

I am trying to select mesh faces by color i.e. cull pattern, dispatch, or set up ranges of color values. Has anyone tried this or have any suggestions on how to approach this.

 

Thanks,

-Matt

Views: 8454

Replies to This Discussion

Hi Matt,

 

never tried, but here's a possible approach:

 

1) convert all your colours to points (rgb becomes xyz).

2) then use the [Closest Point] component to find distances between any colour you have and the nearest colour in the palette.

 

Do note that mesh faces do not have a colour. It's mesh vertices that can have colours. A mesh face is can either have 3 or 4 colours, depending on whether it's a tri or a quad.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I'm not sure how this works in theory but I'm testing now.

 

-So I would decompose the RGB into xyz create point from xyz

 

-Decompose the color I am testing against and create xyz point

 

I tried the closest point but I'm not sure how that would be utilized?

 

- I then tried distance which gave me data but how would I associate the data back to the mesh to dispatch?

 

Thanks,

David

Attachments:

Nevermind, got it! Awesome!

 

Thanks,

David

Hi Matt

 

i think this question is releated to geco: this are also two possibilities

It is. Thank you for noticing. Would you post the file please or images with Draw Icons unchecked.

 

-Matt

sure

here it is

Attachments:

[uto],

 

Thanks so much. I'm just now responding due to the internet being down. Exactly what I was trying to do. Thanks for the help.

 

-Matt

Hey Matt,

no problem,

are you already in Innsbruck? 

[uto],

 

Yes. I have been here since this past monday. It's beautiful here.

 

-Matt

[uto],

 

I feel I'm almost there in accomplishing my objective, only though your help ofcourse, but I'm not able to cull all of the mesh cells.

I set up multiple color swatches to capture the meshes containing the RGB data and adjusted the percentage so as to not overlap the mesh faces.

Some of the swatches are successful but others are not in collecting the faces that fall within the percentage of similarity.

 

Thanks,

-Matt

 

Attachments:

Hi Matt

this is the better solution

divide the solar impact range in domains and use this ranges for extracting the corresponding meshfaces.

see attached file

Attachments:

[uto]

 

Thanks again.

 

-Matt

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service