Mark points inside a closed surface with a scalar value

Hi all,

I want to assign a specific value for the cells enclosed inside a set of surfaces/contours. The filter “vtkSelectEnclosedPoints” creates a mask with values outside (mask value=0) or inside (mask value=1) the surface. Since I need to define different values for the cells inside each of the surface, I only see this possible passing the surfaces to the filter one by one and changing the 1’s with the scalar values I want.

Is there a more optimal way to do this?

Thanks!
Carlos.