Can your C++ subroutine:<br>1) create and instance of whichever subclass of vtkDataSet is most suitable to your problem,<br>2) populate that dataset by making calls to the vtkDataSet API, and<br>3) create a vtkDataSetWriter, set it's input to be that dataset, set it's filename, and call Write()?<br>
<br>If not then you need to manually populate the file yourself, making sure that you conform to what the book says about the file format.<br><br>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Wed, Sep 23, 2009 at 10:08 AM, chukwudi chukwu <span dir="ltr"><<a href="mailto:chuckdii2002@yahoo.com">chuckdii2002@yahoo.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;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
I am running a simulation written in C++ and I need to write the output to a VTK file for visualization using Paraview. I have read the VTK manual for writing VTK format files but this does not solve my problem as my input data to the file will come from a imulation, not manually written as is demonstrated in the manual. What I wish to do is to write a subroutine in C++ that will create the VTK file and save the data in my preferred geometry/topology.<br>
I will appreciate if I you could refer me to materials and tutorials that<br> will help me achieve this.</td></tr></tbody></table><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>