Does anyone know the answer to this?  Or can point me in the right direction?<br>thanks<br><br><div class="gmail_quote">On 6 July 2010 16:40, Paul Harris <span dir="ltr">&lt;<a href="mailto:harris.pc@gmail.com">harris.pc@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 all,<div><br></div><div>I have written a vtk Picker that works with some rendered points that I display.</div><div>

I previously tried all sorts of techniques like ray tracing etc but I&#39;ve discovered the most accurate way is to simply check every point I plot against the pixel location, by converting each point to the Display coordinate with WorldToDisplay()</div>


<div><br></div><div>Unfortunately, that means 100k+ calls to WorldToDisplay(), which is pretty damn slow.</div><div><br></div><div>How can I make this faster?  I assume I could get the WorldToDisplay conversion matrix and then just multiply each point by the matrix.  That would be a lot faster... at the moment WorldToDisplay() seems to reconstruct the matrix every single time.</div>


<div><br></div><div>thanks,<br>Paul</div><div><br></div>
</blockquote></div><br>