[Paraview] writing vtk file
David E DeMarle
dave.demarle at kitware.com
Wed Sep 23 10:25:40 EDT 2009
Can your C++ subroutine:
1) create and instance of whichever subclass of vtkDataSet is most suitable
to your problem,
2) populate that dataset by making calls to the vtkDataSet API, and
3) create a vtkDataSetWriter, set it's input to be that dataset, set it's
filename, and call Write()?
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.
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
On Wed, Sep 23, 2009 at 10:08 AM, chukwudi chukwu <chuckdii2002 at yahoo.com>wrote:
> 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.
> I will appreciate if I you could refer me to materials and tutorials that
> will help me achieve this.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090923/602506e2/attachment.htm>
More information about the ParaView
mailing list