[vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject

Berk Geveci berk.geveci at kitware.com
Thu Oct 11 19:40:10 EDT 2007


Try using vtkMultiGroupDataWriter. You have to use CVS VTK as I wrote
that after 5.0 branch. That should produce a .vtm file as well as one
or more .vtX files.
We will be focusing on multi-block support for the next version of
ParaView. Hopefully, you won't have to worry about this after 3.4.

-berk

On 10/11/07, Renato N. Elias <rnelias at nacad.ufrj.br> wrote:
>
> Hi folks,
>
> I'm facing the following problem:
>
> I'm trying to load an Ensight file and convert it into a VTK XML file. The
> problem is that vtkGenericEnSightReader is treating my file as a
> vtkMultiBlockDataSet, even for a file with only one piece of data (I guess,
> it should not work in this way).
>
> The method of using vtkfile->SetInputConection(reader->GetOutputPort()) does
> not work at all and using vtkfile->SetInput(reader->GetOutput()) return me a
> compilation error message which says:
>
> cannot convert parameter 1 from 'vtkMultiBlockDataSet *' to 'vtkDataObject
> *'
>
> I already tried the forced method of using
> reinterpret_cast<vtkDataObject>(vtkMultiBlockDataSet) but it has not worked
> -- I should confess that I'm just a Fortran (and ex-Object Pascal)
> programmer playing a little bit with C++.
>
> I thought also about using the filter vtkMultiGroupDataExtractDataSets but I
> have no idea how I could use it. It's not on my VTK book (I guess, multi
> block data is a VTK-CVS feature). Ok, I could just simplify my problem using
> previous versions of VTK but in the other hand, I'd like to keep everything
> updated. Any ideas?
>
> Regards
>
> Renato.
>
> p.s.: In fact, I'm trying to overcome a ParaView problem by converting my
> Ensight files into VTK single block data.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list