# Create Model from Scalar Volume with highest resolution

**URL:** <https://discourse.slicer.org/t/create-model-from-scalar-volume-with-highest-resolution/10644>\
**Category:** Support\
**Created:** [March 11, 2020, 2:34pm UTC](https://discourse.slicer.org/t/create-model-from-scalar-volume-with-highest-resolution/10644 "2020-03-11T14:34:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siaeleni](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Post date:** [March 11, 2020, 2:34pm UTC](https://discourse.slicer.org/t/create-model-from-scalar-volume-with-highest-resolution/10644/1 "2020-03-11T14:34:34Z")

</div>

Hi,  
I have a ScalarVolume with only two intensities (0,1) and I would like to convert it into a vtkMRMLModelNode. The steps that I follow are the following:

1. In Editor (I convert it into a Label Map)
2. In Model Creator (I convert the Label Map into a Model Node)  
My question is, how can I create the model with highest resolution(mabye the best triangulation)?

(I would like to give more information regarding my aim in case that I do extra work without needed.  
I want to apply sitk filters to my initial model and the steps that I follow are the following:  
vtkModel-\>vtkSegmentationNode-\>LabelMap-\>ScalarVolume-\>filter-\>ScalarVolume-\>LabelMap-\>Model – Does this process is what do you recommend or there is different workflow that I should follow? Because I have realized that at the end the model has poor resolution if I am not mistaken.)

Thanks

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 11, 2020, 4:26pm UTC](https://discourse.slicer.org/t/create-model-from-scalar-volume-with-highest-resolution/10644/2 "2020-03-11T16:26:59Z")

</div>

I would recommend this pipeline:  
vtkMRMLModelNode -\> vtkMRMLSegmentationNode -\> vtkMRMLLabelMapVolumeNode -\> SimpleITK filter -\> vtkMRMLLabelMapVolumeNode -\> vtkMRMLSegmentationNode -\> vtkMRMLModelNode

See a complete example (from segmentation node to segmentation node) in [Watershed segment editor effect](https://github.com/lassoan/SlicerSegmentEditorExtraEffects/blob/master/SegmentEditorWatershed/SegmentEditorWatershedLib/SegmentEditorEffect.py).
