<div dir="ltr"><div>HI Elvis,<br><br><br></div><div>ITK would probably handle the mesh to image problem solving space<br></div><div>better, but I have had success with a pipeline composed of<br>myPolyData => vtkPolyDataToImageStencil => vtkImageStencilToImage => <br>write_your_own_myWorkOnMaskImageOfPolyDataContents<br><br></div><div>There are some limits to what vtkPolyDataToImageStencil and do: you may<br></div><div>need to transform your mesh to an x-y-z aligned image space with sufficient resolution and<br></div><div>have it satisfy certain topological conditions.<br><br></div><div>- Dean<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 23, 2017 at 8:45 PM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have a set of points describing multiple convex polyhedra. The<br>
polyhedra are for the most part disjoint in space, but they may<br>
intersect slightly in some places.<br>
<br>
I need to create an empty voxel volume (all scalars 0), and then<br>
"fill" the voxels that are inside one (or several) of the polyhedrons<br>
with some Perlin noise. I also have access to normals for the faces<br>
constituting the polyhedra, if necessary.<br>
<br>
Finally, I also have a single separate polyhedron (non-convex this<br>
time), and as a finishing step, I'd like to fill the voxels that are<br>
inside this polyhedron with a constant scalar value.<br>
<br>
Can VTK help me here?<br>
<br>
As this is new territory for me as far as VTK goes, any<br>
pointers/advice on how to go about it would be much appreciated.<br>
<br>
Cheers,<br>
Elvis<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>