I was wondering if anyone could help me; I am having trouble getting vtkCellLocator to find the closest point on a surface from a point in space.&nbsp; I have tried using an example/testing program, and it seems to work fine.<br>
<br>The flow of my application as it applies to the surface is as follows:<br>a segmented DICOM is read using vtkStructuredPointsReader<br>vtkMarchingCubes and vtkPolyDataConnectivityFilter are then used to create the surface representation<br>
A vtkCellLocator is created, using the output of vtkPolyDataConnectivityFilter as the input data (I have also tried using vtkMaskPoints to use the vertices as the input)<br><br>An error occurs whenever I attempt to use the FindClosestPoint method of the Cell Locator.&nbsp; A similar error would come up with the testing program located <a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Cxx/CellLocator.cxx?root=VTK&amp;content-type=text/plain">here</a> when you remove the line <br>
 sphere-&gt;SetThetaResolution(8); sphere-&gt;SetPhiResolution(8);<br>I was wondering if the surface I try to use is wrong for the locator, and if there is any way to get this to work<br>