segmentindex is 0 based

This commit is contained in:
Christopher Lackner 2019-08-14 14:00:37 +02:00
parent 15e68020ba
commit c33feee970

View File

@ -2150,7 +2150,7 @@ namespace netgen
}
if(mesh.GetDimension() == 2)
{
for (SegmentIndex j=1; j<=mesh.GetNSeg(); j++)
for (SegmentIndex j=0; j<mesh.GetNSeg(); j++)
{
auto seg = mesh[j];
for (auto map : idmaps)