# Voxelization of STL

**URL:** <https://discourse.slicer.org/t/voxelization-of-stl/17477>\
**Category:** Support\
**Created:** [May 5, 2021, 3:56pm UTC](https://discourse.slicer.org/t/voxelization-of-stl/17477 "2021-05-05T15:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyunning](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wangyunning/32/14704_2.png) [@wangyunning](https://discourse.slicer.org/u/wangyunning)\
**Post date:** [May 5, 2021, 3:56pm UTC](https://discourse.slicer.org/t/voxelization-of-stl/17477/1 "2021-05-05T15:56:33Z")

</div>

Operating system: Windows 10

Slicer version: 4.11.1

Hi all!

I am new to 3Dslicer, and I am doing a project of spinal segmentation. Now I have both the STL model and the segmented CT image of vertebra. I am wondering whether I can fill the gray value corresponding to the pixel points of CT into the three-dimensional STL model in 3Dslicer，so I can get all the grayscale values on this plane.  
Any insight into this matter will be greatly appreciated.

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:** [May 21, 2021, 6:22pm UTC](https://discourse.slicer.org/t/voxelization-of-stl/17477/2 "2021-05-21T18:22:13Z")

</div>

You can import the model to a segmentation node then use Mask volume effect to fill regions inside/outside the segment with constant value.
