[vtkusers] question about vtktrianglefilter

Jothy jothybasu at gmail.com
Thu Mar 10 04:56:23 EST 2011


probably you should use

TrunkModell->SetInput(
Packungscontainer1[u]->GetOutput(0));//your output number, I think
vtkAppendPolyData can't return all the inputs as one output

Jothy


On Thu, Mar 10, 2011 at 9:17 AM, Rene_Wohlgethan <rwohlgethan at icqmail.com>wrote:

> Hi =)
>
>
>
> I´ve got a question about vtkTriangleFilter
>
>
> I want to insert a vtkAppenPolyData into a vtkTriangleFilter like this.
>
>
>                        Packungscontainer1[u] = vtkAppendPolyData::New();
>
>  Packungscontainer1[u]->AddInput(Packungscontainer[i]->GetOutput());
>                        Packungscontainer1[u]->Update();
>
>                        vtkTriangleFilter *PackungsModell =
> vtkTriangleFilter::New();
>
>  TrunkModell->SetInput(Packungscontainer1[u]->GetOutput());
>                        TrunkModell->GetOutput()->ReleaseDataFlagOn();
>                        PackungsModell->Update();
>
> But when i run my program, an error occurs:
>
> ERROR: In ..\..\vtk-5.6.0\Filtering\vtkDemandDrivenPipeline.cxx, line 728
> vtkStreamingDemandDrivenPipeline (02D56630): Input port 0 of algorithm
> vtkTriangleFilter(02ABAF28) has 0 connections but is not optional.
>
>
>
> can someone explain why this error occurs, btw. what i did wrong?
>
> Best Regards, René
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/question-about-vtktrianglefilter-tp3422996p3422996.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20110310/dc5d83f8/attachment.htm>


More information about the vtkusers mailing list