Hi,
<div><br></div><div>So I'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 &t, double x[3], double pcoords[3], int &subId, vtkIdType &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 >= VTK_MAX_ROTATIONS )</div><div> {</div><div> vtkGenericWarningMacro(</div><div> "vtkMath::Jacobi: Error extracting eigenfunctions");</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 't' 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>