<div dir="ltr"><div><div><div><div><div><div>In vtkTriangle IntersectWithLine there is a "hard" part for when the easy test have not been able to compute intersection<br>vtkTriangle.cxx:530<br><br></div>However, the only way to reach this part of the code is when the test (evaluatePosition) line 516 returns -1.<br><br></div>The only way for vtkTriangle::evaluatePosition to return -1 is when the triangle is flat ( degenerated ), and in that case, pcoords are forced to zero.<br><br></div>Then the following three tests, 539, 544, 555 will never succeed.<br><br></div>So it looks like this "hard" code never succeed into finding intersection, which is not very important.<br></div>Also degenerated triangle cannot be interessected, which is important.<br><br></div>What do you think about it ?<br><div><br clear="all"><div><div><div><div><div><div><div><div class="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
</div></div></div></div></div></div></div></div>