[vtkusers] Initialising arrays of pointers to vtkPolyData, etc.

Marcus Thamson markie_thomson at yahoo.de
Sun Dec 6 20:22:33 EST 2009


Hi All,

I am trying to render multiple surfaces in one render window using VTK with C++.

So, I would like to take my working single surface code (vtkPolyData, vtkPolyDataMapper, vtkActor, vtkRenderer, ...), and use an dynamic arrays of pointers instead, with "Renderer->AddActor(Actors[i_surf])" in a for loop.

However, I am having some problems initialising dynamic arrays of pointers to vtkPolyData, etc.
My fumbling attempts with double pointers (e.g. "vtkPolyData **surfs") have not worked.

Could someone please provide an example of how to do this? (or put me on the right track if this direction is not good practice)

(Admittedly, this is more of a question about C/C++ programming...sorry - I couldn't find any generic examples to work with).

Many thanks, MT


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091207/6847ae93/attachment.htm>


More information about the vtkusers mailing list