[vtkusers] Filter with input: vtkPolyData, output: vtkGraph

Jérôme jerome.velut at gmail.com
Mon Nov 16 16:08:41 EST 2009


Hi,

By using blibli->SetInputConnection( blabla->GetOutputPort( )) instead of
old fashioned-methods, the error regarding missing connections disappears.
However, errors remain : "vtkGraphAlgorithm returned failure for request". I
didn't look at it.

BTW, I didn't understand the FillInputPortInformation implementation in your
code. Why do you test the Superclass method before filling your information?

Jerome

2009/11/16 David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
>

> On Sat, Nov 14, 2009 at 5:26 PM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> > wrote:
>
>> (warning - crosspost. This was on the devel list a week ago with no
>> resolution).
>>
>> I am trying to make a filter that takes a vtkPolyData as input and
>> produces a vtkGraph as output:
>> http://rpi.edu/~doriad/VTK_List/vtkNearestNeighborGraph/<http://rpi.edu/%7Edoriad/VTK_List/vtkNearestNeighborGraph/>
>>
>> I get a bunch of these errors that make it look like I have not set an
>> input:
>> vtkStreamingDemandDrivenPipeline (0x89d60a0): Input port 0 of
>> algorithm vtkGraphToPolyData(0x89d5ac8) has 0 connections but is not
>> optional.
>>
>> but as far as I can tell I have set all the connections properly. Can
>> anyone see something I have done wrong?
>>
>> Thanks,
>>
>> David
>>
>
> Is this a valid thing to do? Have a filter with input PolyData and output
> Graph?
>
> Thanks,
>
> David
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091116/bc1465a2/attachment.htm>


More information about the vtkusers mailing list