how to change mesh fomat file to gts format

Asked by Lei Hang on 2020-07-31

Hello,everyone.
I want to import mesh geometry from .gts file. I use GMESH to create a cylinder.mesh file. but I don't know how to convert it to gts format file. Could you tell me how tot do that? Thanks so much!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luc Scholtès
Solved:
2020-08-04
Last query:
2020-08-04
Last reply:
2020-08-01

This question was reopened

Best Luc Scholtès (luc) said : #1

Hi,

From GMSH, you can export your mesh to the .stl format IIRC. Then, you can use the stl2gts command to convert it to gts:

https://manpages.ubuntu.com/manpages/disco/man1/stl2gts.1.html

Lei Hang (h-stone) said : #2

Thank you very much!

Lei Hang (h-stone) said : #3

Thanks Luc Scholtès, that solved my question.