Hi<br><br>I am trying to implement the following algorithm and I am stuck. I need to cast rays<br>from each pixel into a dataset. Along each ray , I need to find the first cell that satisfies<br>some characteristics. I go about implementing it as follows :<br>
Using the vtkCellLocator::IntersectWithLine() , i find the first cell the ray intersects in the dataset.<br>If this cell satisfies the conditions , we exit. <br>else we continue searching cells along the ray until one such cell is found , or until we eventually reach <br>
the boundary of the dataset.<br>Now this searching cell along a ray is causing me trouble. Given the first cell that the ray intersected,<br>I find the faces of the cell that the ray intersects. From these faces I choose the one that is nearer to the<br>
end point of the ray and the next cell to search is the cell adjacent to the chosen face.<br>The algorithm seems to be correct logically atleast.<br><br>The vtkCell::IntersectWithLine() functions however seem to be giving inconsistent results ! Are there<br>
any known issues with these functions ? Please advise.<br><br>Also can you please comment on the algorithm above ? Is there any other way( better ? ) to do the same ?<br> <br>--<br>shekhar