[vtkusers] vtkBox::IntersectBox

David Gobbi david.gobbi at gmail.com
Thu Oct 14 16:24:33 EDT 2010


On Thu, Oct 14, 2010 at 2:07 PM, David Doria <daviddoria at gmail.com> wrote:
>> 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
>>
>
> Haha that's a pretty loose definition of "clear" you're using there :)
>
> I'm going to change it to say:
> "Notes: the intersection ray dir[3] is NOT normalized. Valid
> intersections will only occur between 0<=t<=1. That is, 'dir' also
> encodes the length of the line segment which is used to do the
> intersection in its magnitude."
>
> Thanks David G.

At the same time, you should also rename the parameter to something
other than "dir".

  David



More information about the vtkusers mailing list