[vtkusers] multi-objects in VTK; loop-Problem

Fabian fabian-richter at gmx.de
Mon Aug 15 08:47:30 EDT 2011


Hi,

yes I tried. But the line 

vtkPlaneSource *plane[i] = vtkPlaneSource::New();

caused trouble.

This is a part of the code:

int main()
{
	int plane[500];

	int i;
	 for (i = 0; i < 499; ++i)
	{
	  plane[i]=i+1;
	  vtkPlaneSource *plane[i] = vtkPlaneSource::New();
	}
  system("PAUSE"); //Just a check for me
return 0;
}

--
View this message in context: http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700838.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list