<div dir="ltr">Hi Berti,<div><br></div><div>If its a triangulated surface that you want to fill with voxels, use vtkPolyDataToImageStencil:</div><div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataToImageData/" target="_blank">https://lorensen.github.io/<wbr>VTKExamples/site/Cxx/PolyData/<wbr>PolyDataToImageData/</a><br></div><div><br></div><div>If its a mesh of 3D elements and you want to sample the elements to create voxels, try vtkResampleToImage.</div><div><br></div><div> - David</div><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 28, 2018 at 4:41 PM, Berti Krüger <span dir="ltr"><<a href="mailto:berti_krueger@hotmail.com" target="_blank">berti_krueger@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Everyone.<br>
<br>
For my Project i have to voxelize a 3D-Triangle-Mesh. I already found the<br>
vtkVoxelModeller which, while somewhat slow (only around 200 Triangles per<br>
second), works, but only voxelizes the outer shell where the mesh boundary<br>
triangles are. The inner part of the mesh stays hollow. <br>
<br>
Is there some way to get solid voxelization of 3D-Triangle-Meshes out of the<br>
box with VTK ?<br>
<br>
<br>
Thank you very much in advance,<br>
<br>
Berti<br></blockquote></div></div></div></div>