mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
find edges by searching for segments in both directions
This commit is contained in:
parent
a5ba7075e4
commit
0135559dd6
@ -818,12 +818,23 @@ namespace netgen
|
||||
point_found = true;
|
||||
break;
|
||||
}
|
||||
else if(seg[1] == points.Last() &&
|
||||
points[points.Size()-2] != seg[0])
|
||||
{
|
||||
edge_len += (mesh[points.Last()] - mesh[seg[0]]).Length();
|
||||
points.Append(seg[0]);
|
||||
point_found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(is_end_point(points.Last()))
|
||||
break;
|
||||
if(!point_found)
|
||||
{
|
||||
cout << "points = " << points << endl;
|
||||
throw Exception(string("Could not find connected list of line segments for edge ") + edgenr);
|
||||
}
|
||||
}
|
||||
|
||||
// tangential part of growth vectors
|
||||
auto t1 = (mesh[points[1]]-mesh[points[0]]).Normalize();
|
||||
|
Loading…
Reference in New Issue
Block a user