# Read 2D mesh from triangle

**URL:** <https://community.freefem.org/t/read-2d-mesh-from-triangle/1390>\
**Category:** General Discussion\
**Created:** [December 14, 2021, 1:24pm UTC](https://community.freefem.org/t/read-2d-mesh-from-triangle/1390 "2021-12-14T13:24:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larismartins](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/larismartins/32/2712_2.png) [@larismartins](https://community.freefem.org/u/larismartins)\
**Post date:** [December 14, 2021, 1:24pm UTC](https://community.freefem.org/t/read-2d-mesh-from-triangle/1390/1 "2021-12-14T13:24:08Z")

</div>

Hi,

I have a mesh file generate by triangle, so I have files of the type:  
.ele  
.node  
.neigh  
.edge  
.poly

Is it possible to read this mesh in freefem? How?

---

<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:** [December 14, 2021, 4:37pm UTC](https://community.freefem.org/t/read-2d-mesh-from-triangle/1390/2 "2021-12-14T16:37:43Z")

</div>

It is not difficult to build a code to read this kind of file  
You can use python and awk to build a file .msh (freefem for file)  
from .ele and .node file or with a good editor.
