Remove faces based on legend color order

i try to Remove faces based on legend color order
but
There is a mistake in deleting the order of the faces. Does anyone have a suggestion for the correct execution of this algorithm?


legend color is:IMG_20200722_105324_520
face remove.gh (271.5 KB)


Colors.gh (18.5 KB)
3 Likes

thanks :ok_hand: