[vtkusers] Understanding vtkAppendFilter ; interesting results..

kenichiro yoshimi rccm.kyoshimi at gmail.com
Wed Aug 8 20:18:50 EDT 2018


Hi,

I can't replicate this problem with VTK 8.1. These outputs(output.vtk)
have the same number of cells 960,000 and they are both shown properly
in ParaView. Even though I directly appends a vtkStructuredGrid data
into vtkAppendFilter, this works.
>vtkSmartPointer<vtkStructuredGrid> sgrid = createGrid(i, i+10, j,j+10, k, k+10);
> filter->AddInputData(sgrid);

Is this problem caused by the incorrect rendering?

Regards
2018年8月9日(木) 0:56 Fcs <ftpronk at engits.com>:
>
> Hello Chiranjib,
>
> Unfortunately that's not of any help, no. The cell connectivity of the
> vtkStructuredGrid is known and calling SetPoints() is enough to create a
> grid with all the correct connectivity, so I shouldn't have to insert new
> cells. On top of it, the class doesn't have an InsertNextCell() method.
>
> So I'm still trying to understand why I have to copy my vtkStructuredGrid to
> a vtkUnstructuredGrid to have the vtkAppendFilter work correctly.
> The vtkAppendFilter documentation doesn't specify that a
> vtk*Un*structuredGrid is required for it to work properly. It just states
> that it will append datasets together into a vtkUnstructuredGrid..
>
> Kind regards,
>
> Francois.
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list