[vtkusers] vtk-theory: some questions about "behind the curtains"

David Doria daviddoria at gmail.com
Thu Aug 18 08:34:35 EDT 2011


On Thu, Aug 18, 2011 at 7:51 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> On Thu, Aug 18, 2011 at 3:19 AM, Fabian <fabian-richter at gmx.de> wrote:
>> Hello all,
>>
>> thanks to Your help I managed to get my code running. But it brings some new
>> questions which I need advice with:
>>
>> 1. Each plane consits 2 polygons, right? Then 1000 planes make 2000
>> polygons; a number which my hardware should deal with easily; but frame rate
>> is poor with (just) 2000 polygons. Can it be, that I chose the wrong
>> strategy: I create a vector with 1000 planes then 1000 datamapper then 1000
>> actors...all in one loop. Thus maybe I should say, I created 1000 piplines.
>> Is there a better way? I hoped to measure my hardware-redndering-power with
>> some million polygons!

If none of the actors are moving with respect to each other, you
should use the vtkAppendPolyDataFilter to combine all of the data and
then a single mapper and actor:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata

David



More information about the vtkusers mailing list