[vtkusers] display two objects

Amy Squillacote amy.squillacote at kitware.com
Mon Feb 19 10:04:16 EST 2007


Are the helix and the cone each attached to a separate mapper and actor?
Did you add both actors to the renderer?
Are both the actors rendering to the same place on the screen? (You can 
call GetBounds on the actors to find out coordinates of the actor's 3D 
bounding box.)

If none of these fixes your problem, then please post example code 
demonstrating the problem.

- Amy

付文宇 wrote:
> hi everyone
>    I want to display both a helix and a cone by vtk. There is a hint which said i
> should use two actors. I use two actors, but the result of display only display
> one object. I do not know why. Can someone give me a example? 
>
> thanks in advance.
>
>
> _______________________________________________
> 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
>
>   

-- 
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106




More information about the vtkusers mailing list