[Gmsh] .msh file with base index 0

cgeuzaine at uliege.be cgeuzaine at uliege.be
Thu Jan 3 18:22:56 CET 2019





> On 3 Jan 2019, at 16:17, Deepak Garg <deepak.garg at ingv.it> wrote:
> 
> Hi there, 
> 
> I am using gmdh 4 version. The starting indices of nodes and elements are 1 in .msh format.
> 
> How can i save the mesh in .msh format with base index 0 for nodes and elements?
> 
> I need it to be read in my C++ Fem code.
> 

You should define your own indexing in your code: the numbers in Gmsh are tags - and they are not guaranteed to be continuously numbered. Tag « 0 » is reserved for special uses (as are negative tags) and should not be used.

Christophe

> Many thanks in advance,
> Deepak Garg
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh


More information about the gmsh mailing list