I've got a color gradient (black to red) on a line and I would like to find all points close to the color 0.5 and place them in a group. I'm using pcfind to get the 10 points closest to color 0.5. in the range of 0.3
I don't get how to take all those found points and place them in a group.
float grad = @ptnum/(@numpt-1.0); //gradient 0 to 1 float ref = 0.5; //mid value aka center of my line float vRange = 0.3; //color range to search for points int taken = 10; //total closest points taken
here is an approach. I've put the pcfind result into a detail attribute, which can be written back into a point attribute/group. Maybe there are simpler solutions.