<div dir="ltr">I feel it would be better to use std::vector&lt;vtkPlaneSource&gt;planes.<br><br>Then create a plane and add to the vector using push_back.<br><br>HTH<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 1:47 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;">Hi,<br>
<br>
yes I tried. But the line<br>
<br>
vtkPlaneSource *plane[i] = vtkPlaneSource::New();<br>
<br>
caused trouble.<br>
<br>
This is a part of the code:<br>
<br>
int main()<br>
{<br>
        int plane[500];<br>
<br>
        int i;<br>
         for (i = 0; i &lt; 499; ++i)<br>
        {<br>
          plane[i]=i+1;<br>
          vtkPlaneSource *plane[i] = vtkPlaneSource::New();<br>
        }<br>
  system(&quot;PAUSE&quot;); //Just a check for me<br>
return 0;<br>
}<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700838.html" target="_blank">http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700838.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></div>