<div dir="ltr"><div dir="ltr" style="font-size:13px"><div>Hi,</div><div> </div><div>How can one store multiple copies/instances of vtkAssembly's? </div><div><br></div><div>If the number of possible vtkAssembly's were known, I would have opted for a fixed size array, however I can only think of the C++ Vector.</div><div><br></div><div>This is what I can think of as a data structure...</div><div><b><i>vector<vtkAssembly> actorCombo</i></b></div><div><b><i><br></i></b></div><div>Are there better data structures for handling multiple vtkAssembly's?</div><div><br></div><div>Also, I am having some difficulty storing multiple glyph's that are plotted on a vtkActor. Basically, I can store vtkActor's as  <b><i>vector<vtkActor> actors</i></b></div><div>but I don't know how to store and associate the multiple glyph's to each actor. If I were to use C Style arrays, I could opt for a 2D array, such that [i][j], where [i] would represent the index of the actor and [j] would represent each glyph object. How would I go about storing it as a vector?</div><div><br></div><div>Also, in terms of memory management, what is better - linked lists or vectors?</div><div><br></div><div>Would greatly appreciate it if you or anyone on this forum could answer my questions. It would really mean a lot to me.</div><div><br></div><div>Many Thanks</div></div><div style="font-size:13px"><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" class=""></div></div>