Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/path-ellipsis-cmdsForEdge
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Feb 13, 2021
2 parents 59de4bd + feb4ffc commit dba3f40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Mesh/App/Core/TopoAlgorithm.cpp
Expand Up @@ -1148,7 +1148,7 @@ void MeshTopoAlgorithm::SplitFacet(unsigned long ulFacetPos, const Base::Vector3
Base::Vector3f cDir = cEnd - cBase;

float fDist = rP2.DistanceToLine(cBase, cDir);
if ( fMinDist < fDist )
if ( fDist < fMinDist )
{
fMinDist = fDist;
iEdgeNo = i;
Expand All @@ -1174,7 +1174,7 @@ void MeshTopoAlgorithm::SplitFacet(unsigned long ulFacetPos, const Base::Vector3
Base::Vector3f cDir = cEnd - cBase;

float fDist = rP1.DistanceToLine(cBase, cDir);
if ( fMinDist < fDist )
if ( fDist < fMinDist )
{
fMinDist = fDist;
iEdgeNo = i;
Expand All @@ -1201,13 +1201,13 @@ void MeshTopoAlgorithm::SplitFacet(unsigned long ulFacetPos, const Base::Vector3
Base::Vector3f cDir = cEnd - cBase;

float fDist = rP1.DistanceToLine(cBase, cDir);
if ( fMinDist1 < fDist )
if ( fDist < fMinDist1 )
{
fMinDist1 = fDist;
iEdgeNo1 = i;
}
fDist = rP2.DistanceToLine(cBase, cDir);
if ( fMinDist2 < fDist )
if ( fDist < fMinDist2 )
{
fMinDist2 = fDist;
iEdgeNo2 = i;
Expand Down

0 comments on commit dba3f40

Please sign in to comment.