[vtkusers] HDF5 with VTK
Mike Jackson
imikejackson at gmail.com
Tue Jan 22 11:49:27 EST 2008
So basically, you need to read the data from the HDF5 file and render
that using VTK. This can be done for your dataset but you will need
to write the conversion code. The basic outline would be something like.
Read a timestep of HDF5 data into memory (assuming it will fit)
Instantiate the appropriate vtk object (would vtkImage be appropriate
or vtkStructuredGrid?)
copy all the data to the vtk object creating scalar and vector
attributes as needed.
save the resulting file to a vtk file (vtkXML....Writer)
View data in ParaView (or vtk for that matter).
Does this help?
On Jan 22, 2008, at 11:18 AM, Ogedengbe, Emmanuel wrote:
> After installation of VTK for use with purely C++ on windows, I
> have been struggling with how to get started with reading my CFD
> datasets for visualization. I have done some research with HDF5 but
> having problem with having to go into increasing number of third
> party software and libraries. Recently, I learnt that H5utils can
> convert HDF5 datasets into the formats required by other free
> visualization software like VTK. But it’s only for UNIX systems,
> though it appears help can come from CygWin .
>
> Can anyone help? I just want to visualize simple 2D/3D grid-based
> scalar and vector flow fields simulated with my native codes.
>
>
> Thanks in anticipation
>
> Emmanuel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080122/27a673cc/attachment.htm>
More information about the vtkusers
mailing list