# Is there a way to convert Markups to Volume?

**URL:** <https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126>\
**Category:** Support\
**Created:** [January 9, 2023, 11:39am UTC](https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126 "2023-01-09T11:39:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnzzll](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nnzzll/32/16350_2.png) [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Post date:** [January 9, 2023, 11:39am UTC](https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126/1 "2023-01-09T11:39:52Z")

</div>

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

 ![Screenshot from 2023-01-09 19-27-16](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/f/fffaa08f16b88e2dbb55a7268798d4512a18847d.png)

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?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 9, 2023, 2:40pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126/2 "2023-01-09T14:40:32Z")

</div>

> [@nnzzll](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![nnzzll](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nnzzll/32/16350_2.png) [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Post date:** [January 10, 2023, 2:02am UTC](https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126/3 "2023-01-10T02:02:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 11, 2023, 1:05pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-convert-markups-to-volume/27126/4 "2023-01-11T13:05:18Z")

</div>

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