[vtkusers] vtkContourFilter->SetInputConnection(vtkExodusIIReader ->GetOutputPort())
David E DeMarle
dave.demarle at kitware.com
Fri Jun 1 13:40:16 EDT 2012
Please keep the discussion on the mailing list so that everyone can
contribute and benefit.
VTK creates an vtkExecutive for every vtkAlgorithm behind the scenes.
use:
static void vtkAlgorithm::SetDefaultExecutivePrototype(vtkExecutive
*vtkCompositeDataPipelineInstance)
to change the default Executive type from vtkStreamingDemandDrivenPipeline.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Wed, May 30, 2012 at 6:35 PM, erol yeniaras <eyeniaras at gmail.com> wrote:
> Hi David,
>
> Thanks for the quick reply. To the best of my knowledge, I do not have
> vtkexecutive type in my code. I have only used:
> vtkExodusIIReader
> vtkContourFilter
> vtkPolyDataNormals
> vtkPolyDataMapper
> vtkActor
>
> Am I missing something? (I am new to VTK, so I am sorry if my question is
> absurd)
>
> erol
>
> On Wed, May 30, 2012 at 5:12 PM, David E DeMarle <dave.demarle at kitware.com>
> wrote:
>>
>> In your program, change the default vtkexecutive type to
>> vtkCompositeDataPipeline. That knows how to iterate over the blocks to
>> satisfy the mismatch on the output and input filter types for you.
>>
>> On May 30, 2012 5:49 PM, "erol yeniaras" <eyeniaras at gmail.com> wrote:
>>>
>>> Hello all,
>>>
>>> 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
>
>
More information about the vtkusers
mailing list