<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 30, 2013 at 1:42 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.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">David,<br>
<br>
I don't see amything in VTK. ITK does have a LineIterator that will<br>
visit each cell on a finite line.<br>
<br>
Bill<br></blockquote><div><br></div><div>I put my quick solution here if anyone else is interested in something like this in the future: <br></div><div><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IntersectLine">http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IntersectLine</a><br>
<div><br>As a bonus, it shows a nice way to visualize the cells of an image, and how to deletes the cells that were hit by the line.<br><br>David</div></div></div></div></div>