# Create vtkimagedata from closed surface with small holes

**URL:** <https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798>\
**Category:** Development\
**Created:** [October 1, 2020, 3:33pm UTC](https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798 "2020-10-01T15:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![loubna](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@loubna](https://discourse.slicer.org/u/loubna)\
**Post date:** [October 1, 2020, 3:33pm UTC](https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798/1 "2020-10-01T15:33:43Z")

</div>

Hi  
I have a 3D mesh(closed surface) that contains small holes . Il il possible to convert il to image data using vtkimagestencil ?

Thank’s in advance

---

<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:** [October 2, 2020, 11:33pm UTC](https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798/2 "2020-10-02T23:33:03Z")

</div>

Yes, of course, you can do that. Alternatively, you can right-click on the model node to convert to segmentation and then right-click on the segmentation to convert it to image.
