mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-18 00:00:49 +05:00
Fixed 0 or 1 based index problem for edges in 3D
This commit is contained in:
parent
1bd16797cd
commit
02be12e58b
@ -202,11 +202,11 @@ def ReadGmsh(filename):
|
||||
if tags[1] in bbcmap:
|
||||
index = bbcmap[tags[1]]
|
||||
else:
|
||||
index = len(bbcmap)
|
||||
index = len(bbcmap)+1
|
||||
if len(namemap):
|
||||
mesh.SetCD2Name(index + 1, namemap[tags[0]])
|
||||
mesh.SetCD2Name(index, namemap[tags[0]])
|
||||
else:
|
||||
mesh.SetCD2Name(index+1, "line" + str(tags[1]))
|
||||
mesh.SetCD2Name(index, "line" + str(tags[1]))
|
||||
bbcmap[tags[1]] = index
|
||||
|
||||
elif meshdim == 2:
|
||||
|
Loading…
x
Reference in New Issue
Block a user