bug in vtkTriangle::PointInTriangle
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Consider the case where x lies along one of the edges, say v21, but outside the edge. Then the vectors x1, x2 and v21 are all pointing in the same direction. Then n2 becomes (0, 0, 0) as the result of the cross product, and both dot products on line 992 evaluate to zero. So the function returns 1, even though the point is not on the triangle (or on the edge). Right?