[vtkusers] MergeDataObjectFilter

John Platt jcplatt at lineone.net
Thu Apr 22 17:01:00 EDT 2004


Hi Michael,

Have you tried 

vtkFloatArray -> vtkFieldData+vtkDataObject -> vtkMergeDataObjectFilter
->
vtkAssignAttribute.

John.

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Michael Hilbinger
Sent: 22 April 2004 08:50
To: vtkusers at vtk.org
Subject: [vtkusers] MergeDataObjectFilter

Hello everybody,

I encounter problems in realizing the following tasks:

for a given geometry I would like to merge a pile of data arrays on it,
one
after another,
scalars only. I'm loading the geometry with vtkDataSetReader. The data
array
is extracted
from an file into vtkFloatArray and passed to a VtkFieldData. As far as
I
know I have to pass
the data throw a vtkMergeDataObjectFilter and then through a
vtkFieldDataToAttributeDataFilter.

vtkFloatArray -> vtkFieldData+vtkDataSet -> vtkMergeDataFilter ->
vtkFieldDataToAttributeDataFilter

The problem I have is to coordinate the input of the
FieldDataToAttributeDataFilter. The filter
is complaining about the fielddata not being a DataObject. Has anybody
recommendations for me how
to handle this? Everything is working fine if I pass the attribute data
through an extrenal file
and reading it by vtkDataObjectReader, but I am trying to avoid this as
I
have a lot of different
attribute data.

Best regards

Michael


_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list