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.
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.
Hi , i was facing the same problem as you in extracting meshes with different colours, and i saw your files and i also tryed the same solution that you came out with ... but i think i miss something, can you take a look ? thank you sooo much in advance !
ps:(the component for the structural analysis is Millipede by sawapan)
David Rutten
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
Mar 5, 2011
Matt
-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
Mar 5, 2011
Davide Rando
Hi , i was facing the same problem as you in extracting meshes with different colours, and i saw your files and i also tryed the same solution that you came out with ... but i think i miss something, can you take a look ? thank you sooo much in advance !
ps:(the component for the structural analysis is Millipede by sawapan)
Jul 3, 2017