mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 11:00:37 +05:00
Fix a crash on geometry of http://www.salome-platform.org/forum/forum_10/670730490
This commit is contained in:
parent
050aa87698
commit
e430c16626
@ -2010,10 +2010,12 @@ namespace
|
|||||||
while ( nbFreeLinks > 0 )
|
while ( nbFreeLinks > 0 )
|
||||||
{
|
{
|
||||||
if ( iPolygon == _polygons.size() )
|
if ( iPolygon == _polygons.size() )
|
||||||
|
{
|
||||||
_polygons.resize( _polygons.size() + 1 );
|
_polygons.resize( _polygons.size() + 1 );
|
||||||
|
_polygons[ iPolygon ]._polyLinks.reserve( 20 );
|
||||||
|
_polygons[ iPolygon ]._links.reserve( 20 );
|
||||||
|
}
|
||||||
_Face& polygon = _polygons[ iPolygon ];
|
_Face& polygon = _polygons[ iPolygon ];
|
||||||
polygon._polyLinks.reserve( 20 );
|
|
||||||
polygon._links.reserve( 20 );
|
|
||||||
|
|
||||||
_OrientedLink* curLink = 0;
|
_OrientedLink* curLink = 0;
|
||||||
_Node* curNode;
|
_Node* curNode;
|
||||||
@ -2274,11 +2276,6 @@ namespace
|
|||||||
_polygons[ iPolygon ]._polyLinks.clear();
|
_polygons[ iPolygon ]._polyLinks.clear();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( freeLinks.back() == &polygon._links.back() )
|
|
||||||
{
|
|
||||||
freeLinks.pop_back();
|
|
||||||
--nbFreeLinks;
|
|
||||||
}
|
|
||||||
_polygons.pop_back();
|
_polygons.pop_back();
|
||||||
usedFaceIDs.erase( curFace );
|
usedFaceIDs.erase( curFace );
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user