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

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

Best,
gang

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