[vtkusers] Ray casting and intersection point
David Doria
daviddoria at gmail.com
Tue Mar 20 08:45:35 EDT 2012
On Tue, Mar 20, 2012 at 6:57 AM, wingsneak <naygniw at hotmail.com> wrote:
> thank you very much JB.
>
> what do you mean by 1.5 diagonal of dataset?
You can get the bounds of the dataset:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataBounds , compute
the length of the diagonal, and use 1.5x that value as the length of
the line segment that you use to do the "ray" intersection.
David
More information about the vtkusers
mailing list