fix hang in fracturing algorithm
This commit is contained in:
parent
07ad6cb0bb
commit
fb29373b4c
|
@ -350,7 +350,7 @@ static int processEdge( FractureEdgeSet& edges, FractureEdge* edge )
|
|||
|
||||
int dist = ( x - x_intersect );
|
||||
|
||||
if( dist > 0 && dist < min_dist )
|
||||
if( dist >= 0 && dist < min_dist && (*i)->m_connected )
|
||||
{
|
||||
min_dist = dist;
|
||||
x_nearest = x_intersect;
|
||||
|
|
Loading…
Reference in New Issue