c++ - How to dynamically create elements in VTK? -


i've been trying create primitives text input file in vtk. means, input file example:

cube s x y z sphere r x y z cube s x y z cone r h x y z 

where have name of element , attributes such position, radius, etc, depending on primitive. have done far put 1 actor each primitive in same rendered scene. program draw cube, sphere , cone based on example above. want accomplish dynamically draw whatever input says.

i supposse have create actor every object in scene. don't know how many objects input indicates before running it. thinking list of actors (because can push many actors list input says), i'm not sure if it's neccessary.

need big on here. ty

what need vtkactorcollection. think of list of actors. supply number of actors (the number of premitives), , iterate through collection , connect suitable source it.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -