# Save VTK file mesh file with elements adjacency

**URL:** https://community.freefem.org/t/save-vtk-file-mesh-file-with-elements-adjacency/743
**Category:** General Discussion
**Created:** [January 12, 2021, 5:08pm UTC](https://community.freefem.org/t/save-vtk-file-mesh-file-with-elements-adjacency/743 "2021-01-12T17:08:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![quang-ha](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/quang-ha/32/372_2.png) [@quang-ha](https://community.freefem.org/u/quang-ha)
#### Post date: [January 12, 2021, 5:08pm UTC](https://community.freefem.org/t/save-vtk-file-mesh-file-with-elements-adjacency/743/1 "2021-01-12T17:08:18Z")

</div>

I am currently using FreeFem++ to generate a VTK mesh, i.e.:

```auto
load “msh3”
load “iovtk”

int n=6;
mesh3 Th1 = cube(n, n, n);

savevtk(“cube-DG-mesh.vtk”, Th1);

```

Is there anyway for FreeFEM to generate the adjacency of elements as well?
