<font size="2"><font face="verdana,sans-serif">Have you considered using an array of planes? So instead of plane1, plane2 etc you have plane[1], plane[500]?<br></font></font><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 12:57, 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;">Hi everyone,<br>
<br>
I am quite new in VTK so this might be an easy question:<br>
<br>
I want to write a program, that shows me a specified number of polygons<br>
(lets say 1000).<br>
For some reasons I need different ojects. So I thought of rendering 500<br>
planes (2 polygons each).<br>
<br>
So i would like to create a loop that works like this (of course this is<br>
pseudocode):<br>
<br>
- loop (for i &lt; 500)<br>
- create a vtk-plane with vtkplanesource with the name plane#i (plane1,<br>
plane2, plane3,...plane500)<br>
- i++<br>
<br>
Unfortunately I cannot manage this problem.<br>
<br>
Any help is appreciated, THANK YOU,<br>
Fabian<br>
<br>
[Windows 7, MS Visual Studio 2010]<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700582.html" target="_blank">http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700582.html</a><br>


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>
</blockquote></div><br>