Hello,<br><br><br>I have a vtkPolyData with ~2000 points and ~4000 triangles that I&#39;m rendering. I&#39;m using vtkCellPicker to shoot 400 rays and would like to know the coordinates of the rendered polydata with which these rays intersect and also I want to know the cells that intersected with these rays. vtkCellPicker seems to do the right thing (i.e., it returns the correct intersection points and intersecting cell ids), but it takes a long time to run. With the use of vtkTimerLog, I find that it takes on an average 1.5 seconds to perform these 400 ray intersections with my 4000 triangle model. This time is not acceptable since I am working with a sparse data now and ulitmately my code would likely be running with much larger models. <br>
<br>So, I would like to know a couple of things<br><br>a) Normally, does vtkCellPicker&#39;s Pick() take this long? (I have verified that the other parts of my code are not slowing things down)<br>b) If so, what type of speed up mechanisms do you use in your vtk apps?<br>
<br>I saw vtkCellLocator uses an octree to speed up location queries? Should I be using it&#39;s IntersectWithLine function and avoid vtkCellPicker? Are there any other alternatives? <br clear="all"><br>-- <br>Regards,<br>
Murali Dhanakoti<br>