[vtkusers] Ray casting and intersection point
wingsneak
naygniw at hotmail.com
Fri Mar 16 04:10:38 EDT 2012
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.
More information about the vtkusers
mailing list