[vtkusers] About vtkCellLocator::IntersectWithLine method
David Gobbi
david.gobbi at gmail.com
Wed Sep 3 13:55:36 EDT 2014
On Wed, Sep 3, 2014 at 11:13 AM, Nicolas Gallego <nicgallego at gmail.com> wrote:
> Hi,
>
> I understand that p1 and p2 are the extremes of the intersecting finite line
> segment, and tol is some sort of tolerance, but my confusion is about the
> reference double& t, x, pcoords and the rest,
>
> Are all of them outputs?
I don't have an answer on hand, but the answer is, yes, they are all outputs.
t - parametric coordinate along the line segment (a value between 0 and 1)
x - intersection point, in data coordinates
pcoords - parametric coordinates within the polygon (I haven't used
these for a while, so I have forgotten how they are defined)
cellId - identifies the cell that has been intersected
subId - identifies a "sub-cell" within the cell, e.g. the triangle if
the cell is a triangle strip
- David
More information about the vtkusers
mailing list