# Issue during voxelization of a model stl

**URL:** <https://discourse.slicer.org/t/issue-during-voxelization-of-a-model-stl/7687>\
**Category:** Support\
**Created:** [July 19, 2019, 3:57pm UTC](https://discourse.slicer.org/t/issue-during-voxelization-of-a-model-stl/7687 "2019-07-19T15:57:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 11, 2019, 4:54am UTC](https://discourse.slicer.org/t/issue-during-voxelization-of-a-model-stl/7687/2 "2019-08-11T04:54:29Z")

</div>

You can do it a bit simpler:

- Load the STL as segmentation: in “Add data” dialog, choose “Segmentation” in description column
- Create master volume of at the desired resolution: Go to Segment Editor module, click on Specify geometry button (next to Master volume selector), select your input mesh as source geometry, specify voxel size (spacing values) and click OK
- Create binary labelmap representation: go to Data module, right-click on the segmentation and choose Export visible segments to binary labelmap

---

_[View the full topic](https://discourse.slicer.org/t/issue-during-voxelization-of-a-model-stl/7687)._
