[vtkusers] vtkStreamingDemandDrivenPipeline Error!!!

Alex Malyushytskyy alexmalvtk at gmail.com
Fri Dec 23 18:28:58 EST 2011


Solution depends on what you really want:
- if you need PolyData - you might want to extract cells as polygonal data
( read Robert's comment )
- if you just want to display untsructured grid  datasets you read you
might want
to use vtkDataSetMapper instead of vtkPolyDataMapper
If you might want to extract part of unstructured grid , check
vtkExtractUnstructuredGrid,
or vtkContourGrid.

Alex

On Fri, Dec 23, 2011 at 8:18 AM, Robert Maynard
<robert.maynard at kitware.com> wrote:
> vtkFLUENTReader output type is a multiblock dataset of unstructured
> grids. If you are interested in just the surface you will
> need to first extract the surface (see vtkGeometryFilter) and then
> pass that to vtkCompositePolyDataMapper2
>
> On Fri, Dec 23, 2011 at 5:44 AM, Nelson <gnjoseph at gmail.com> wrote:
>> Hi Alex:
>>
>> My code is:
>>
>> // FLUENTReader
>> vtkSmartPointer<vtkFLUENTReader> reader =
>> vtkSmartPointer<vtkFLUENTReader>::New();
>> reader->SetFileName( path );
>> reader->Update();
>>
>> // Mapper
>> m_polyDataMapper = m_parent->GetPolyDataMapper();
>> m_polyDataMapper->SetInputConnection( reader->GetOutputPort() );
>>
>> // Actor
>> m_pActor = m_parent->GetActor();
>> m_pActor->SetMapper( m_polyDataMapper );
>>
>> // Renderer
>> vtkSmartPointer<vtkRenderer> renderer = m_parent->GetRenderer();
>> renderer->AddActor( m_pActor );
>> //renderer->ResetCamera();
>>
>> // Render window
>> vtkSmartPointer<vtkRenderWindow> renderWindow = m_parent->GetRenderWindow();
>> renderWindow->AddRenderer( renderer );
>>
>> // Create an interactor and associate it to the render window
>> wxVTKRenderWindowInteractor* wxVTKRenWinInteractor =
>> m_parent->GetRenderWindowInteractor();
>> wxVTKRenWinInteractor->SetRenderWindow( renderWindow );
>>
>> // Interactor style
>> vtkSmartPointer<vtkInteractorStyleTrackballCamera> style =
>> m_parent->GetInteractorStyleTrackballCamera();
>> wxVTKRenWinInteractor->SetInteractorStyle( style );
>> wxVTKRenWinInteractor->Initialize();
>>
>> -----
>> Regards,
>> Nelson
>> --
>> View this message in context: http://vtk.1045678.n5.nabble.com/vtkStreamingDemandDrivenPipeline-Error-tp5094520p5096856.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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
>
>
>
> --
> Robert Maynard
> _______________________________________________
> 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