Add them to the collection yourself if you don&#39;t like the checks that vtkRenderer imposes. Something like :<br><br>vtkPropCollection *coll = renderer-&gt;GetViewProps();<br>foreach(prop) {<br>  prop-&gt;AddConsumer(renderer);<br>
  coll-&gt;AddItem();<br>}<br><br>That said, you will experience an enormous drag with a million actors. The overhead of a million mappers - actors - properties is way too much. <br><br>You should come up with a composite data or geometry representation that would not necessitate a million actors.<br>
<br>--<br>karthik<br><br><div class="gmail_quote">On Thu, Jul 8, 2010 at 1:22 PM, Yang Yang <span dir="ltr">&lt;<a href="mailto:yyang109@gmail.com">yyang109@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: arial,helvetica,sans-serif;">Dear users,</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">I wonder if there is a way to speed up the method vtkRenderer::AddActor. I found that when I call vtkRenderer::AddActor(vtkProp*), it will in turn call</span> vtkViewport::AddViewProp(vtkProp*)<span style="font-family: arial,helvetica,sans-serif;">,  </span>vtkViewport::HasViewProp(vtkProp*) and then vtkCollection::IsItemPresent(vtkObject*). In IsItemPresent method it loops over all the existing actors and check if the argument actor already exists. If I want to add for example a million actors to the renderer, this check will take a huge amount of time. However I don&#39;t need this check, because in my code in the higher level I garanteed that there will be no duplicate actors added to the renderer. So My question is, is there any way to bypass the check  IsItemPresent when calling vtkRenderer::AddActor? or is there any other fast way to add a huge number of actors to the renderer?<br>

<br>Any suggestion or clue is highly appreciated!<br><br>Best<br><font color="#888888">Yang<span style="font-family: arial,helvetica,sans-serif;"></span>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>