<div dir="ltr">It&#39;s simple<br><br>#include&lt;vector&gt;<br><br>std::vector&lt;vtkPlaneSource&gt;planeList;<br><br>for(i=0;i&lt;10;i++)<br>{<br><br>vtkPlaneSource *plane=vtkPlaneSource::New();<br>//Do whatever you want<br>
planeList.push_back(plane);<br><br>}<br><br>If you want to acess the plane, you could do it by<br><br>planeList[i]-&gt;GetOrigin();//For instance<br><br>Neither I am a c++ expert, just started a copule of months ago!<br><br>
HTH<br><br>Jothy<br><br><br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 2:21 PM, Fabian <span dir="ltr">&lt;<a href="mailto:fabian-richter@gmx.de">fabian-richter@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank You for your ideas!<br>
<br>
But *ashamed* I dont know how to do implement this or how to use push back<br>
:((<br>
<br>
I searched for some hints on the web but didnt find fast help.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700989.html" target="_blank">http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700989.html</a><br>

</font><div><div></div><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div>