mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
use mesh[nr]
This commit is contained in:
parent
7bb3698043
commit
41d47e038b
@ -259,8 +259,8 @@ namespace netgen
|
||||
ednr = mesh.AddEdgeDescriptor(ed);
|
||||
mesh.SetCD2Name(bcpr, name);
|
||||
auto nr = mesh.AddSegment(tmp_segments[get<0>(element_map[index])-1]);
|
||||
mesh.LineSegment(nr+1).SetBCName(mesh.GetCD2NamePtr(mesh.GetNCD2Names()));
|
||||
mesh.LineSegment(nr+1).edgenr = ednr+1;
|
||||
mesh[nr].SetBCName(mesh.GetCD2NamePtr(mesh.GetNCD2Names()));
|
||||
mesh[nr].edgenr = ednr+1;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -283,8 +283,8 @@ namespace netgen
|
||||
case 2:
|
||||
{
|
||||
auto nr = mesh.AddSegment(tmp_segments[get<0>(element_map[index])-1]);
|
||||
mesh.LineSegment(nr+1).edgenr = ednr+1;
|
||||
mesh.LineSegment(nr+1).SetBCName(mesh.GetCD2NamePtr(mesh.GetNCD2Names()));
|
||||
mesh[nr].edgenr = ednr+1;
|
||||
mesh[nr].SetBCName(mesh.GetCD2NamePtr(mesh.GetNCD2Names()));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user