Is there a way to convert Markups to Volume?

I got a ScalarVolumeNode and a FiducialNode with aboslute glyph size like the screenshot below

Is there a way to convert the vtkMRMLMarkupsFiducialNode to a vtkMRMLLabelmapVolumeNode?

I suppose that if I can get the polydata of the FiducialNode, I can convert it to a SegmentationNode then convert the SegmentationNode to a binary labelmap, is it possible?

This is what I’d do. Make sure you have a different model node for each fiducial, and have them in a folder in subject hierarchy, then you can convert them to a segmentation node right-clicking the folder.

Now the problem is how to get the polydata from FiducialNode?

I tried the GetScalarDataSet() method of vtkMRMLMarkupsFiducialDisplayNode, but it returned polygon line rather than spheres

I remember this question having been answered recently in the forum. Please do a search for it.