[vtkusers] Ray casting and intersection point

Dženan Zukić dzenanz at gmail.com
Fri Mar 16 07:20:05 EDT 2012


p1= picker->GetPickPosition()
p2 = p1 + 10000* pickernormal->GetPickNormal()
t - for intersection point p, p=p1+t*p2

On Fri, Mar 16, 2012 at 09:10, wingsneak <naygniw at hotmail.com> wrote:

> Hi David,
>
> thank you for your quick reply.. but i still do not understand..
>
> how i turn the normal into a line? and would the normal be extending into
> the right direction (towards the skin surface)?
>
> currently this is my algorithm:
>
> double pickernormal[3];
>
> picker->GetPickPosition()      :: point picked on the skull surface
> pickernormal->GetPickNormal() :: when i print pickernormal out, i get this:
> -2.8934, 0.67394, -3.09273
>
> does pickernormal represent the normal at the point i picked from the skull
> surface?
>
> if so, could you point out to me what should the first 3 parameters (p1, p2
> and tolerance) of
> IntersectWithLine(p1, p2, tolerance, t, x, pcoords, subId) be?
>
> also what is the tolerance parameter?
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Ray-casting-and-intersection-point-tp5567706p5570215.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120316/8bb5eff2/attachment.htm>


More information about the vtkusers mailing list