<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Mon, Sep 27, 2010 at 9:28 AM, Affolter Martin <span dir="ltr"><<a href="mailto:martin.affolter@ntb.ch">martin.affolter@ntb.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Jim,<br>
<br>
thanks for your reply. You're right, we're using one pipeline for each element, which obviously results in a large number of pipelines. With this approach we are able to select and highlight every actor (mesh, vertex, edge, ...) individually. With VTK 4.4 we never really had any performance issues so it was not necessary to change the way we visualize things.<br>
<br>
Used actor-interaction:<br>
- Selection requests, that for each shown graphic-element the corresponding geometry-element can be identified.<br>
- Highlighting requests, that for each geometry-element the corresponding graphic-element can be identified and altered (color, transparency, etc).<br>
- Identification must be fast<br>
<br>
And here is some additional information:<br>
- The initial polydata is never manipulated. If the geometry-data changes, the old polydata is erased and new pipelines are created.<br>
- If the geometry-data is being transformed (identity-transformation only), the corresponding actors are also transformed (usermatrix)<br>
<br>
We could consider combining polydata to use fewer actors as you suggested. However, this change would generate a lot of work in our system. I was hoping that we could restrict the pipeline execution (according to our needs) and thus make it run faster. Do you know how to do that? What classes do you use for the combination of polydata?<br>
<br>
Thanks<br>
<br>
Martin Affolter<br><br></blockquote><div> </div><div>To combine PolyData objects you can use vtkAppendPolyData:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata</a></div>
<div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata"></a><br><div>David </div></div>