You'll have to excuse my new-ness on this one, I've never dug down<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

into the real workings of the pipeline.<br>
<br>
It seems that vtkGraphAlgorithm::ProcessRequest is calling with<br>
REQUEST_DATA_OBJECT rather than REQUEST_DATA as is usually the case in<br>
filters that I have derived from vtkPolyDataAlgorithm. What is the<br>
difference between these?<br>
<br>
Now that I have overriden RequestDataObject (with<br>
vtkNearestNeighborGraph::RequestDataObject), the cast of the output to<br>
a vtkGraph seems to be the part that is failing:<br>
<div class="im">  vtkGraph* output = vtkGraph::SafeDownCast(<br>
<br>
outInfo->Get(vtkDataObject::DATA_OBJECT()));<br>
<br>
</div>output is invalid after this cast. Any hints on why that would be? The<br>
output should be a vtkGraph by definition of vtkGraphAlgorithm, right?<br>
<div class="im"><br>
Here is the latest version:<br>
</div><a href="http://rpi.edu/%7Edoriad/VTK_List/vtkNearestNeighborGraph/" target="_blank">http://rpi.edu/~doriad/VTK_List/vtkNearestNeighborGraph/</a><br>
<br>
Any pointers are much appreciated!<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br>I found some similar things in Infovis. I stripped them down to see what was required. Here is a barebones example for anyone interested.<br><br><a href="http://www.vtk.org/Wiki/VTK_Examples_vtkGraphAlgorithm_Source">http://www.vtk.org/Wiki/VTK_Examples_vtkGraphAlgorithm_Source</a><br clear="all">
<br>Thanks,<br><br>David<br>