[vtkusers] vtkExodusIIReader usage

erol yeniaras eyeniaras at gmail.com
Fri Jun 1 13:26:10 EDT 2012


Hello all

Does anyone know how to use vtkExodusIIReader? An example code or anything
will help.

> Below is the algorithm that I am trying for rendering exodusII file. It
>> gives the following error when loading Reader to the Filter:
>> *ERROR: In
>> ..\..\..\..\vtksource-prefix\src\vtksource\Filtering\vtkDemandDrivenPipeline.cxx,
>> line 827*
>> *vtkStreamingDemandDrivenPipeline (0756AF50): Input for connection index
>> 0 on input port index 0 for algorithm vtkContourFilter(07560E88) is of type
>> vtkMultiBlockDataSet, but a vtkDataSet is required.*
>>
>> *ALGORITHM:*
>> vtkExodusIIReader *Reader *= vtkExodusIIReader.New();
>> vtkContourFilter *Filter *= vtkContourFilter.New();
>> vtkPolyDataNormals *Normals *= vtkPolyDataNormals.New();
>> vtkPolyDataMapper *Mapper *= vtkPolyDataMapper.New();
>> vtkActor *actor *= vtkActor.New();
>>
>> *Reader*.SetFileName("C:\\...\\fem.e");
>> *Reader*.Update();
>>
>> *Filter.SetInputConnection(Reader.GetOutputPort()); * // Here is the
>> problem!!!
>>
>> *Normals*.SetInputConnection(*Filter*.GetOutputPort());
>>
>> *Mapper*.SetInputConnection(*Normals*.GetOutputPort());
>>
>> *actor*.SetMapper(*Mapper*);
>>
>> Any help is highly appreciated.
>>
>> Best,
>> Erol
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>


-- 

Erol YENIARAS, Ph.D.
The University of Texas MD Anderson Cancer Center
Department of Imaging Physics - Unit 1902
1881 East Road
Houston, Texas 77054****

United States
Phone: (713) 563-6407****

Fax: (713) 563-2986
E-mail: eyeniaras at mdanderson.org




-- 

Erol YENIARAS, Ph.D.
The University of Texas MD Anderson Cancer Center
Department of Imaging Physics - Unit 1902
1881 East Road
Houston, Texas 77054****

United States
Phone: (713) 563-6407****

Fax: (713) 563-2986
E-mail: eyeniaras at mdanderson.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120601/c0cdf4e7/attachment.htm>


More information about the vtkusers mailing list