<div class="gmail_quote">On Mon, Mar 14, 2011 at 8:26 AM, Avi Sengupta <span dir="ltr"><<a href="mailto:avinandan.sengupta@gmail.com">avinandan.sengupta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to serialize two or more vtkActors to the same .vtp file. I do not want to use a vtkPolyDataAppender as it does not allow me to have actor specific properties (color, opacity, etc.)<br>
Is there a way that this can be done?<br>
<br>
Thanks<br>
Avi<br></blockquote><div><br>You cannot write actors to a vtp file. You can only write polydata objects (which you created the actors from) to the file. You would have to actually apply the properties to the polydata before appending them and writing them to the file.<br>
<br>See this example: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints</a><br><br>David</div></div>