[vtkusers] reading a collection of polydata
Michael Jackson
mike.jackson at bluequartz.net
Wed Apr 14 11:02:47 EDT 2010
I typically use vtkMultiBlockDataset as my output type. Each "block"
is an individual contour vtkPolyData Object.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson at bluequartz.net
BlueQuartz Software Dayton, Ohio
On Apr 14, 2010, at 10:58 AM, Dean Inglis wrote:
> I subclassed vtkPolyDataAlgorithm to make a reader for
> text files containg sequences of x-y pairs that represent
> 2D contours. There are generally more than one contour specified
> per file. Currenly I read in each contour and append
> it with vtkAppendPolyData. The output of the reader is then
> one polydata with its number of cells equal to the number of
> contours. Further on in my app, I split them back out with
> vtkExtractSelectedPolyDataIds and add them to a vtkPolyDataCollection.
> What I really want is to have the output of the reader to be a
> vtkPolyDataCollection so that each contour can
> be uniquely retrieved directly from the reader, however, I cant
> find the appropriate parent class that would allow either multiple
> outputs to be specified on the fly during RequestData(...) or
> to have the one output be a vtkPolyDataCollection. That is,
> there is no parent class named vtkCollectionAlgorithm that specifies
> a collection as its output. Any design ideas to deal with this
> scenario would be greatly appeciated.
>
> thanks,
> Dean _______________________________________________
> 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
More information about the vtkusers
mailing list