Hi,
<div><br></div><div>So I&#39;ve been having some problems with vtkOBBTree using the intersectWithLine method with the following signature:</div><div><br></div><div>int <span class="Apple-tab-span" style="white-space:pre">        </span>IntersectWithLine (double a0[3], double a1[3], double tol, double &amp;t, double x[3], double pcoords[3], int &amp;subId, vtkIdType &amp;cellId, vtkGenericCell *cell)</div>
<div><br></div><div>In particular, depending on what I have initialised some of the input parameters to, which I had assumed and the code and docs indicate their initial values are not important, with exception of a0, a1, and tol(0,0), I got different results.  Having looked at the tree, I found that I had forgotten to set the tolerance, it was undefined in the class and unset. (might be good if a sensible default got set, this too could be defined as a bug...)  Anyway, correcting that and setting the tolerance to zero I then got this:</div>
<div><br></div><div><div>Percentage Complete: 2Generic Warning: In VTK/Common/vtkMath.cxx, line 736</div><div>vtkMath::Jacobi: Error extracting eigenfunctions</div><div><br></div></div><div>A lot.  Looking at the code, the following comment is a bit worrying:</div>
<div><br></div><div><div>  //// this is NEVER called</div><div>  if ( i &gt;= VTK_MAX_ROTATIONS )</div><div>    {</div><div>    vtkGenericWarningMacro(</div><div>       &quot;vtkMath::Jacobi: Error extracting eigenfunctions&quot;);</div>
<div>    return 0;</div><div>    }</div></div><div><br></div><div>I need a locator that can let me intersect with a line, and given me back:</div><div>1) the cell that it intersected with,</div><div>2) the location of the intersection.</div>
<div><br></div><div>Also I found in some instances &#39;t&#39; was bigger than one, which I understood to not be possible.....</div><div><br></div><div>Any help, and advice on an alternative intersector that can give me back the above would be great as my choice of vtkobbtree was almost random....</div>
<div><br></div><div>Cheers,</div><div>Andy</div>