[vtkusers] vtkStreamingDemandDrivenPipeline Error!!!

Robert Maynard robert.maynard at kitware.com
Fri Dec 23 11:18:55 EST 2011


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



More information about the vtkusers mailing list