<div dir="ltr">There is a method in vtkPolygon class called as PointInPolygon, but you should read the docs throughly before using it.<br><br>Jothy<br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 2:47 PM, Alex Southern <span dir="ltr">&lt;<a href="mailto:mrapsouthern@gmail.com">mrapsouthern@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I have a closed triangular surface mesh, that I would like to represent as a volume of identically sized cubes. I understand this is known as voxelization where a single cube is referred to as a voxel.<br>
<br>
I am aware that VTK will probably do this for me. Though, for various reasons, I would like to implement this algorithm myself, can anyone give me a clue as to how to tackle this problem from the ground up? References would be great.<br>

<br>
Thanks<br>
Alex<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>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" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br></div>