[vtkusers] Re : vtkMultiBlockDataSet and SetInputConnection
R M
mlokida at yahoo.fr
Thu Oct 6 03:24:23 EDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111006/f4e2a5b6/attachment.htm>
More information about the vtkusers
mailing list