How Can I convert the levelsets segment results(can use marchingcube get surface) to volume mask?

I have used the fastmarching to get the levelset surface, but I want to use the segmentation mask. How can I convert ? any advice?


hi, all I have used the vtkPolyDataToImageStencil filter to generate the image mask volume from surface, thanks all