[vtkusers] vtkBox::IntersectBox

David Gobbi david.gobbi at gmail.com
Thu Oct 14 15:42:29 EDT 2010


On Thu, Oct 14, 2010 at 1:34 PM, David Doria <daviddoria at gmail.com> wrote:
> Has anyone used this function? It doesn't seem to return in an
> intersection in a simple case where I would expect it to.
>
> This example outputs "Not hit!" when I would expect there to be an
> intersection at (-1,0,0):
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Box
>
> Am I doing something wrong?

The "dir" is more than just a direction, its magnitude is important.
It must be long enough to intersect the box. The documentation for the
method is fairly clear on this point.

  David



More information about the vtkusers mailing list