[vtkusers] How to combine several actors into a single entity?

Yianis Nikolaou yianisn at gmail.com
Wed Mar 2 07:36:25 EST 2005


hi,

try using vtkAppendPolyData to combine the (PolyData) output of your
objects (use AddInput) and then create an actor from the (PolyData)
output of the vtkAppendPolyData


On Sat, 26 Feb 2005 12:50:36 -0800 (PST), Shi Jin <jinzishuai at yahoo.com> wrote:
> Hi there,
> 
> I am very new to VTK. I have now a problem drawing a
> multiple spring-bead polymer model. For example, I
> want to draw a dumbbell with one spring and two
> spheres at the end. Now what I do is to make three
> actors for them. But ideally I think I should be able
> to make them into a single identity so that it is
> easier to manipulate them as a whole. Is there a way
> to make these three actors into a single actor or
> something similiar?
> 
> I initialy thought that they are just data so that I
> can make them into one polyData object by inserting
> several parts. But I then found out that all I can
> insert is cells, but not the primitives such as
> spheres and springs(which is a
> vtkRotationalExtrusionFilter).
> 
> Can you help me?
> Thanks a lot.
> 
> Shi
> 
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list