[vtkusers] multi-objects in VTK; loop-Problem
Dženan Zukić
dzenanz at gmail.com
Mon Aug 15 08:32:43 EDT 2011
Have you considered using an array of planes? So instead of plane1, plane2
etc you have plane[1], plane[500]?
On Mon, Aug 15, 2011 at 12:57, Fabian <fabian-richter at gmx.de> wrote:
> Hi everyone,
>
> I am quite new in VTK so this might be an easy question:
>
> I want to write a program, that shows me a specified number of polygons
> (lets say 1000).
> For some reasons I need different ojects. So I thought of rendering 500
> planes (2 polygons each).
>
> So i would like to create a loop that works like this (of course this is
> pseudocode):
>
> - loop (for i < 500)
> - create a vtk-plane with vtkplanesource with the name plane#i (plane1,
> plane2, plane3,...plane500)
> - i++
>
> Unfortunately I cannot manage this problem.
>
> Any help is appreciated, THANK YOU,
> Fabian
>
> [Windows 7, MS Visual Studio 2010]
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/multi-objects-in-VTK-loop-Problem-tp4700582p4700582.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110815/f4686bcd/attachment.htm>
More information about the vtkusers
mailing list