Bypassed the issue by switching to an OBB tree, which has a working IntersectWithLine method in the C# wrapper.<br>Posting this in case anyone else runs into the same problem.<br><br clear="all"><div><div><span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300">Regards,</font></span></span></span></span></span><span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300"><br>
</font></span></span></span></span></span></div><div><span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300">Antanas Budvytis</font></span></span></span></span></span><br>
</div></div>
<br><br><div class="gmail_quote">On Sat, May 4, 2013 at 9:20 PM, Antanas Budvytis <span dir="ltr">&lt;<a href="mailto:daubster1979@gmail.com" target="_blank">daubster1979@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br><br>I am writing an application in C# that uses the Kitware VTK wrapper, and I&#39;ve run into a problem.<br>Whenever I try using the IntersectWithLine method in vtkModifiedBSPTree, I get this error:<br><br><b>ERROR: In ..\..\..\..\vtksource-prefix\src\vtksource\Filtering\vtkAbstractCellLocator.cxx, line 106<br>

vtkModifiedBSPTree (09FC5A10): The locator class - vtkModifiedBSPTree does not yet support this IntersectWithLine interface</b><br><br>This is how I initialize the BSP tree:<br><br><span style="color:rgb(0,0,102)"><span style="font-family:courier new,monospace">vtkModifiedBSPTree vBSP = vtkModifiedBSPTree.New();<br>

vBSP.SetDataSet(vSurf.GetOutput());<br>vBSP.BuildLocator();</span></span><br><br>Where <b>vSurf</b> is a vtkSurfaceReconstructionFilter. The output data seems perfectly valid when I render it.<br><br>And this is the line that causes the error:<br>

<br><span style="color:rgb(0,0,102)"><span style="font-family:courier new,monospace">vBSP.IntersectWithLine(p1ptr, p2ptr, intersections, null);</span></span><br><br>Where <b>p1ptr</b> and<b> p2ptr</b> are both IntPtrs generated from double[3] arrays via System.Marshal, and <b>intersections</b> is an empty newly initialized vtkPoints.<br>

<br>I&#39;ve googled for anything related to this issue to no avail.<br>Is this a missing feature of the Kitware wrapper, or am I doing something wrong? Any help would be greatly appreciated.<br><br clear="all"><div><div>

<span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300">Regards,</font></span></span></span></span></span><span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300"><br>

</font></span></span></span></span></span></div><div><span style="background-color:#006600"><span style="background-color:#ffffff"><span style="background-color:#ffffff"><span style="background-color:#003300"><span style="background-color:#ffffff"><font color="#003300">Antanas Budvytis</font></span></span></span></span></span><br>

</div></div>
</blockquote></div><br>