Hi
I have this mesh and i want take boundaries based on colors.
I tried by split ARGB and same components but i cant achieve boundaries.
exactly i want like this:
Points.gh (24.8 KB)
Hi
I have this mesh and i want take boundaries based on colors.
I tried by split ARGB and same components but i cant achieve boundaries.
exactly i want like this:
Points.gh (24.8 KB)
@fad095760, will you share a file for someone to take a look?
@fad095760 sorry I think you already had the file uploaded but I failed to see it!
Anyway, I can’t look at it this moment but the question reminded me of this response from @Joseph_Oster, where he used mesh face height values and picked the color ‘steps’ himself. Maybe the method can provide some insight but using your given list of (8?) colors instead.
Your colour distribution is based on attractors, so you can use voronoi with those initial points
@laurent_delrieu don’t you have something like this on Nautilus?
I think @Mahdiyar can help.
As mentioned by Fabio, the simplest way to do this is to use the input point to generate a voronoi pattern. However it looks like you’re interested in generating new cells based on new mixed colours.
It’s possible to take all colours and average them out based on proximity, and ‘snap’ them to a fixed number of colours.
This is not a particularly beautiful way of smoothing out the regions, but it’s tricky to do it in a way that keeps the boundaries consistent where regions meet each other.
Points_NL.gh (44.4 KB)
This works well for transitions between two colours, but does not create cells for places where 3+ colours meet. We would need to produce a venn diagram of sorts.