<font><font face="verdana,sans-serif">p1=</font></font>
<span style>picker->GetPickPosition()</span> <div><font>p2 = p1 + 10000*</font>
<span style>pickernormal->GetPickNormal()</span> </div><div><font>t - for intersection point p, p=p1+t*p2<br></font><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 09:10, wingsneak <span dir="ltr"><<a href="mailto:naygniw@hotmail.com">naygniw@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
thank you for your quick reply.. but i still do not understand..<br>
<br>
how i turn the normal into a line? and would the normal be extending into<br>
the right direction (towards the skin surface)?<br>
<br>
currently this is my algorithm:<br>
<br>
double pickernormal[3];<br>
<br>
picker->GetPickPosition() :: point picked on the skull surface<br>
pickernormal->GetPickNormal() :: when i print pickernormal out, i get this:<br>
-2.8934, 0.67394, -3.09273<br>
<br>
does pickernormal represent the normal at the point i picked from the skull<br>
surface?<br>
<br>
if so, could you point out to me what should the first 3 parameters (p1, p2<br>
and tolerance) of<br>
IntersectWithLine(p1, p2, tolerance, t, x, pcoords, subId) be?<br>
<br>
also what is the tolerance parameter?<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Ray-casting-and-intersection-point-tp5567706p5570215.html" target="_blank">http://vtk.1045678.n5.nabble.com/Ray-casting-and-intersection-point-tp5567706p5570215.html</a><br>
<div class="im HOEnZb">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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/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_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/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>