<div>Hi, </div>
<div>&nbsp;</div>
<div>But Amy, how do we do&nbsp;interactive animations in VTK (For eg. mesh deformations on collision with another 3d object)<br>&nbsp;</div>
<div>Regards</div>
<div>Brian Gee Chacko</div>
<div>Project Engineer</div>
<div>Computer Graphics and Virtual Reality</div>
<div>M.S.Ramaiah School of Advanced Studies, Bangalore</div>
<div><a href="http://www.geocities.com/brianchacko">www.geocities.com/brianchacko</a><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/2/08, <b class="gmail_sendername">Amy Squillacote</b> &lt;<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Set the output of vtkSphereSource to be the input to vtkXMLPolyDataWriter. In c++, this looks something like the following.<br>
<br>vtkSphereSource *sphere = vtkSphereSource::New();<br>vtkXMLPolyDataWriter *writer = vtkXMLPolyDataWriter::New();<br>writer-&gt;SetInputConnection(sphere-&gt;GetOutputPort());<br><br>- Amy 
<div><span class="e" id="q_11a4983000be554e_1"><br><br>Antoine Dechaume wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I am trying to create an animation, for which I need an object, let say a sphere, to move with time.<br>
In a python script, I want to save the vtkSphereSource, at each time step, to a file (which will be used in paraview)<br>My only problem is that the writer (vtkXMLPolyDataWriter) wants a vtkDataObject. Is there an easy way to transform a vtkSphereSource instance to feed vtkXMLPolyDataWriter ?<br>
<br>Thanks,<br>Antoine.<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" 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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br><br></blockquote><br></span></div><span class="sg">-- <br>Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.cfdrc.com/" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>Huntsville, AL &nbsp;35805</span> 
<div><span class="e" id="q_11a4983000be554e_3"><br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" 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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Brian Gee Chacko<br>Project Engineer,<br>Centre for Computer Graphics and Virtual Reality<br>M.S.Ramaiah School of Advanced Studies,<br>Bangalore, Karnataka, India<br>
<a href="http://www.geocities.com/brianchacko">www.geocities.com/brianchacko</a>