Axis swapped with XDMF TopologyType="3DCORECTMesh"

Dear all,
I have a naive question which has probably been addressed in the past, but I was not able to find any reference about. When I import the following XDMF file in Paraview

<?xml version="1.0" ?>
  <Topology TopologyType="3DCORECTMesh"  NumberOfElements=" 81 41 21"/>
  <Geometry GeometryType="ORIGIN_DXDYDZ">
    <DataItem Name="Origin" Dimensions="3"  NumberType="Float" Precision="4" Format="XML">
       0.000000  0.000000  0.000000
    </DataItem>
    <DataItem Name="Spacing" Dimensions="3"  NumberType="Float" Precision="4" Format="XML">
       0.025000 0.025000 0.025000
    </DataItem>
  </Geometry>

</Grid>

the x- and z-axis are erroneously swapped. I guess this is not a visualization problem but a wrong data import, as in the “Information” tab I read

X Extent: 0 to 20 (should be 0 to 80)
Z Extent: 0 to 80 (should be 0 to 20)

X Range: 0 to 0.5 (should be 0 to 2)
Z Range: 0 to 2 (should be 0 to 0.5)

Any hint? I’m using Paraview 5.7.0 on Ubuntu 18.04

Thanks in advance

I can confirm that odd behaviour, saying, that I too see that the x- and z-axis are swapped when reading in 3D data from an HDF5 file via an XDMF file using the TopologyType 3DCoRectMesh. This finally results in mirrored visualisation of the given data. I actually believe, that this swapping of data axes is a bug in Paraview. Can anyone else confirm this? Will this be solved in future versions?

Regards

I can confirm this. In ParaView 5.8.1 downloaded from paraview.org the X and Z axes are swapped. The Dimensions, Origin and Spacing are swapped. I didn’t check how HDF5 data are read. The embedded file demonstrates the problem.

<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" >

<Xdmf>
  <Domain Name="IronProtein">
<Grid Name="Iron00">
  <Topology 
     Type="3DCORECTMESH" Dimensions="40 20 10">
  </Topology>
  <Geometry Type="ORIGIN_DXDYDZ">
    <DataStructure
       Name="Origin"
       DataType="Float"
       Dimensions="3"
       Format="XML">
      30 20 10
    </DataStructure>
    <DataStructure
       Name="Spacing"
       DataType="Float"
       Dimensions="3"
       Format="XML">
      3 2 1
    </DataStructure>
  </Geometry>
</Grid>
  </Domain>
</Xdmf>

Also VisIt is confusing the order of the axes, therefore the problem might be in the underlying Xdmf library.

Best Regards