Dear all,
I am trying to read a grid from a vtk file created by Paraview. Unfortunately, this does not work.
Moreover, reading a vtk file that has been created using deal.ii also does not work for me. It seems to me that deal.ii reads the file but does not connect the faces to form a mesh. This is underlined by the attached minimal toy example which creates a two dimensional cross, prints the cross' interior and boundary faces, writes it to a vtk file, reads the mesh from the file, and again prints the interior and boundary faces. Execution of the program gives the following output:
Self Interface 1 0 -0.5
Self Interface 2 -0.5 0
Self Interface 3 0.5 0
Self Boundaryface 1 1 -0.5
Self Interface 4 0 0.5
Self Boundaryface 2 -0.5 1
Self Boundaryface 3 1 0.5
Self Boundaryface 4 0.5 1
Self Boundaryface 5 -1 -0.5
Self Boundaryface 6 -1.5 0
Self Boundaryface 7 -1 0.5
Self Boundaryface 8 1.5 0
Self Boundaryface 9 -0.5 -1
Self Boundaryface 10 0 -1.5
Self Boundaryface 11 0.5 -1
Self Boundaryface 12 0 1.5
Read Boundaryface 1 0 -0.5
Read Boundaryface 2 -0.5 0
Read Boundaryface 3 0.5 0
Read Boundaryface 4 0 0.5
Read Boundaryface 5 -1 -0.5
Read Boundaryface 6 -1.5 0
Read Boundaryface 7 -0.5 0
Read Boundaryface 8 -1 0.5
Read Boundaryface 9 1 -0.5
Read Boundaryface 10 0.5 0
Read Boundaryface 11 1.5 0
Read Boundaryface 12 1 0.5
Read Boundaryface 13 0 -1.5
Read Boundaryface 14 -0.5 -1
Read Boundaryface 15 0.5 -1
Read Boundaryface 16 0 -0.5
Read Boundaryface 17 0 0.5
Read Boundaryface 18 -0.5 1
Read Boundaryface 19 0.5 1
Read Boundaryface 20 0 1.5
Is there any quick fix to this issue (except for not using vtk)? I failed with merging the mesh with itself to eliminate the double boundary faces (e.g. 1 and 16).
Thank you very much!
Best regards,
Andreas