Color Mapping isosurface with the second scalar component

Hey, I have a question confused me.

I use vtksamplefunction to sample a vtkimagedata with specified implicit function. And i make the point scalar array of imagedata from one dimension to two dimension, The first dimension indicate the signed distance, and the second dimension indicate three status for points. code below

Then i specify the vtklookuptable for vtkpolydatamapper. the lookuptable corresponding the three status for vtkimagedata points

Screenshot from 2021-11-06 09-45-32

Last, i use vtkflyingedges3d to extract isosurface, and map the isosurface with vtkpolydatamapper.

BUT The final color mapping result is incorrect, the color mapping seems does’t work. Can you help me? Thanks a lot!