mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
occ - fix bug in edge identification
This commit is contained in:
parent
55196514d2
commit
00e6d1d077
@ -242,9 +242,9 @@ namespace netgen
|
|||||||
// swap points of other edge if necessary
|
// swap points of other edge if necessary
|
||||||
Point<3> p_from0 = ident.trafo(from.GetStartVertex().GetPoint());
|
Point<3> p_from0 = ident.trafo(from.GetStartVertex().GetPoint());
|
||||||
Point<3> p_from1 = ident.trafo(from.GetEndVertex().GetPoint());
|
Point<3> p_from1 = ident.trafo(from.GetEndVertex().GetPoint());
|
||||||
Point<3> p_to0 = ident.trafo(to.GetStartVertex().GetPoint());
|
Point<3> p_to0 = to.GetStartVertex().GetPoint();
|
||||||
|
|
||||||
if(Dist(p_from1, p_to0) < Dist(p_from1, p_to0))
|
if(Dist(p_from1, p_to0) < Dist(p_from0, p_to0))
|
||||||
swap(pto[0], pto[1]);
|
swap(pto[0], pto[1]);
|
||||||
|
|
||||||
for(auto i : Range(2))
|
for(auto i : Range(2))
|
||||||
|
Loading…
Reference in New Issue
Block a user