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