[vtkusers] union of vtkActors
Eric E. Monson
emonson at cs.duke.edu
Wed Jul 8 10:17:57 EDT 2009
Hello,
It may help if you clarify what you want to do with this union of
actors. I don't think you can directly do the Actor1 + Actor2 = Actor3
thing you're implying.
You can create a vtkActorCollection to gather actors and pass them
around as one object. Depending on the type of data you have, you
could also use the vtkAppendFilter, or vtkAppendPolyData to group your
data into a single grid before creating a single mapper and actor.
Maybe someone else knows some other tricks,
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On Jul 8, 2009, at 4:24 AM, toulgen wrote:
> Hi,
>
> I have 2 actors.
>
>
> vtkActor actor1 = vtkActor::New();
> vtkActor actor2 = vtkActor::New();
>
> // Code
>
>
> I want to create an actor3 = actor1 union actor2. It is possible?
>
> Thank you.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects athttp://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/20090708/878765a5/attachment.htm>
More information about the vtkusers
mailing list