[vtkusers] Ray casting and intersection point

Biddiscombe, John A. biddisco at cscs.ch
Sat Mar 17 16:04:02 EDT 2012


One thing to watch out for is that the ray start and ends are mapped to 0-1 and the intersection is always on the ray 0<=i<=1 somewhere. If you make the ray end very far away then the accuracy may be limited by the precision used. Try not to make the ray end millions of miles away - better to use some distance like 1.5 diagonal of dataset, then you know you aren't over compensating for the ray end.

JB
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of wingsneak
Sent: 17 March 2012 16:52
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Ray casting and intersection point

Ok. Thank you, I manage to get it working !

--
View this message in context: http://vtk.1045678.n5.nabble.com/Ray-casting-and-intersection-point-tp5567706p5573831.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



More information about the vtkusers mailing list