[vtkusers] How to enable the xdmf module and read xdmf files.
David E DeMarle
dave.demarle at kitware.com
Wed Jul 20 08:34:55 EDT 2016
On Wed, Jul 20, 2016 at 8:06 AM, Magnus Elden <magnus_elden at hotmail.com>
wrote:
> HI,
>
>
>
> I downloaded and built the XDMF source from www.xdmf.org by cloning git
> clone git://xdmf.org/Xdmf.git.
>
> I then went to CMake and enabled Module_vtkxdmf2 and VTK_USE_SYSTEM_XDMF2
> and set the directory path. I tried building it and after some hassle I
> managed to get it done. However, I was unable to include any XDMF reader
> headers so I guessed that I also needed to enable the Module_vtkIOXdmf2 so
> I did that. Configured and built again, but not I was not able to build the
> IO module because XDMFArray was ambiguous and several functions and types
> were not defined.
>
>
>
I recommend against VTK_USE_SYSTEM_XDMF* since that capability is largely
unproven/untested. Instead, let VTK use the version of XDMF in XDMF. As of
a month ago the version in VTK is the same as the tip of the master branch
of xdmf with extraneous things that VTK doesn't use removed. Prior to that
there was much more divergence.
> I am building this on windows 10 using Visual Studio 2015. I am using
> Cmake 3.6.0.
>
>
>
> What is the difference between XDMF, XDMF2 and XDMF3?
>
Different revisions of the same library/format. See xdmf.org for details.
VTK has two revisions of the same library because of technical differences
between them the most important of which is that 3 requires boost headers
which VTK does not provide.
>
> How can I read an .xdmf file to volume render it?
>
You might want to just download a ParaView binary and open the xdmf file.
But you can do the same from VTK starting with any volume rendering example
and switching the source/reader to vtkXdmf*Reader.
What version of VTK do I need?
>
XDMF was promoted from ParaView to VTK in VTK version 5.10 as I recall.
Anything after that should be fine.
> What version of XDMF do I need?
>
I recommend xdmf3, which is as of a few months ago the tip of the one true
xdmf repo. Xdmf2 is back in the history if you need it.
> Where can I get these libraries?
>
See xdmf.org for instructions on how to get and build any of the versions.
But as I said, just use VTK's version for simplicity.
> Anything else I should know?
>
>
For xdmf3 you need to download and untar boost somewhere on your system and
tell cmake where it is.
>
>
> I have been wrestling with this for about a week now and I must be doing
> something wrong.
>
> I was also unable to find any tutorials or guides on how to achieve this.
> If there are any, please point me in the right direction.
>
>
>
> Yours,
>
> Magnus Elden
>
>
good luck
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160720/985a6df2/attachment.html>
More information about the vtkusers
mailing list