If you paint a labelmap (which is what the vtkPaintWidget example does), you can then render that labelmap volume in 3D. Alternatively, you can use ImageMarchingCubes or other volume-to-surface approach to render a surface.
Thank you for your answer.
Looking at the example, I have a question.
In the example (Paint Widget), I understood that “labelMap” has “ImageSlice” and should have a process of converting “ImageSlice” to “Volume Image”. (In the part where you answered)
If what I understand is correct, how can I convert it?
I thought the Paint Widget example was to paint on top of the original “Image Slice”, but it seems to paint on the transparent “Image Slice” on the “label Map”.
I wonder if what I understood so far is right.
The paint gets applied to the underlying vtkImageData. vtkImageSlice is an actor class that slices a vtkImageData, so there’s no painting done on the actual actor. It’s all done on the underlying data.