<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">In fact each window can have one or more renderers.<BR>Each renderer can have one or more actors.<BR>Actors are mappers are generally 1:1 (I say generally because you can<BR>use groups and assemblies to go 1:N).<BR><BR>The likely easiest path for you to try to do what you want is:<BR>Create a mapper for the Helix data.<BR>Create an actor for the mapper.<BR>Create a mapper for the Cone data.<BR>Create another actor for this mapper.<BR>Add both actors to a renderer.<BR>Add the renderer to a window.<BR><BR><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Amy Squillacote <amy.squillacote@kitware.com><BR>To: 付文宇 <fuwenyu@emails.bjut.edu.cn><BR>Cc: vtkusers@vtk.org<BR>Sent: Monday, February 19, 2007 4:04:16 PM<BR>Subject: Re: [vtkusers] display two objects<BR><BR>
<DIV>Are the helix and the cone each attached to a separate mapper and actor?<BR>Did you add both actors to the renderer?<BR>Are both the actors rendering to the same place on the screen? (You can <BR>call GetBounds on the actors to find out coordinates of the actor's 3D <BR>bounding box.)<BR><BR>If none of these fixes your problem, then please post example code <BR>demonstrating the problem.<BR><BR>- Amy<BR><BR>付文宇 wrote:<BR>> hi everyone<BR>> I want to display both a helix and a cone by vtk. There is a hint which said i<BR>> should use two actors. I use two actors, but the result of display only display<BR>> one object. I do not know why. Can someone give me a example? <BR>><BR>> thanks in advance.<BR>><BR>><BR>> _______________________________________________<BR>> This is the private VTK discussion list. <BR>> Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ"
target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>> Follow this link to subscribe/unsubscribe:<BR>> <A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>><BR>> <BR><BR>-- <BR>Amy Squillacote<BR>Kitware, Inc.<BR>28 Corporate Drive<BR>Clifton Park, NY 12065<BR>Phone: (518) 371-3971 x106<BR><BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A></DIV></DIV><BR></DIV></div><br>
<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a></body></html>