[vtkusers] Re : vtkMultiBlockDataSet and SetInputConnection

Favre Jean jfavre at cscs.ch
Thu Oct 6 03:29:07 EDT 2011


I use a vtkExtractBlock upstream, to do selection on a per-block basis. The output of vtkExtractBlock is itself a multi-block dataset and the rest of the pipeline is unchanged.

J
________________________________
From: R M [mlokida at yahoo.fr]
Sent: Thursday, October 06, 2011 9:24 AM
To: Favre Jean; vtkusers at vtk.org
Subject: Re : [vtkusers] vtkMultiBlockDataSet and SetInputConnection

Hi,

I had seen the vtkCompositeDataGeometryFilter but, the problem in my case, is that the ouput is one polydata (so one polydatamapper and one actor). And, I want the option to make visible or not one of the block on my geometry. That 's why I haven't use vtkCompositeDataGeometryFilter.

Thank you.

________________________________
De : Favre Jean <jfavre at cscs.ch>
À : "vtkusers at vtk.org" <vtkusers at vtk.org>
Envoyé le : Jeudi 6 Octobre 2011 9h06
Objet : Re: [vtkusers] vtkMultiBlockDataSet and SetInputConnection

Here is what I have been using for several years.

eb1 is my multi-block dataset.

VTK_CREATE(vtkCompositeDataGeometryFilter, geom1);
geom1->SetInputConnection(0, eb1->GetOutputPort(0));
geom1->Update();

VTK_CREATE(vtkPolyDataMapper, mapper1);
mapper1->SetInputConnection(geom1->GetOutputPort(0));

VTK_CREATE(vtkActor, actor1);
actor1->SetMapper(mapper1);

-----------------
Jean M. Favre
Swiss National Supercomputing Center


_______________________________________________
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