# vtkloadS("mymesh.vtk")

**URL:** https://community.freefem.org/t/vtkloads-mymesh-vtk/868
**Category:** General Discussion
**Created:** [March 24, 2021, 8:41pm UTC](https://community.freefem.org/t/vtkloads-mymesh-vtk/868 "2021-03-24T20:41:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [March 24, 2021, 8:41pm UTC](https://community.freefem.org/t/vtkloads-mymesh-vtk/868/1 "2021-03-24T20:41:24Z")

</div>

Dear FreeFEM users,

I have tried several formats of “mymesh.vtk” using the following code, and all failed

load “iovtk”  
meshS ThS=vtkloadS(“mymesh.vtk”);

Can someone please provide a simple example of “mymesh.vtk”?  
Thank you very much in advance!

Best wishes,  
Yongxing.

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [March 25, 2021, 8:04pm UTC](https://community.freefem.org/t/vtkloads-mymesh-vtk/868/2 "2021-03-25T20:04:23Z")

</div>

Possibly the vtkloadS is boggus but I don’t not,

this peace of code build a vtk file

```
load "iovtk"
load "msh3"
meshS Th=square3(10,10);
savevtk("Th.vtk",Th,bin=0);
meshS ThS=vtkloadS("Th.vtk");// “mymesh.vtk”);
```
