[vtkusers] Multiple actors, multiple renderers bug

Cory Quammen cory.quammen at kitware.com
Mon Jul 20 13:35:59 EDT 2015


You cannot reliably add the same actor to multiple renderers. See this
thread:

http://public.kitware.com/pipermail/vtkusers/2011-November/070817.html

Cory

On Mon, Jul 20, 2015 at 1:20 PM, Drak <draktharrblorf at gmail.com> wrote:

> Hello,
>
> I'm having weird bugs with vtk and I would like to know if there is any
> workaround.
>
> Basically, what I'm trying to do is this. I have 2 actors (A and B) and 2
> renderers (C and D). On the renderer C, I add both actors A and B. On the
> second renderer, I add only the actor B.
>
> Everything works fine here : actor A and B are displayed on renderer C, and
> actor B on renderer D.
>
> When I remove only the actor B from both renderer, calling
> C-­­>removeActor(B) and D->removeActor(B), the actor A will disappear from
> the renderer C as well for no reason. The surprising thing is that it is
> still in the vtkActorCollection of the renderer when I call C->getActors().
>
> Have any of you tried the same thing? Is there anything I'm maybe doing
> wrong? Is there any workaround? I've been on this for days and really can't
> find any solution other than to copy my actors 2 times, which I'm trying to
> avoid.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Multiple-actors-multiple-renderers-bug-tp5732994.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150720/3cd1b35f/attachment.html>


More information about the vtkusers mailing list