mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 10:00:33 +05:00
0021469: EDF 2074 SMESH: Body fitting algo leads to crash of salome
fix RemoveExcessIntPoints()
This commit is contained in:
parent
253807f5b3
commit
fcf879a78b
@ -402,10 +402,11 @@ namespace
|
|||||||
if ( _intPoints.size() < 2 ) return;
|
if ( _intPoints.size() < 2 ) return;
|
||||||
|
|
||||||
set< Transition > tranSet;
|
set< Transition > tranSet;
|
||||||
multiset< IntersectionPoint >::iterator ip2 = _intPoints.begin(), ip1 = ip2++;
|
multiset< IntersectionPoint >::iterator ip1, ip2 = _intPoints.begin();
|
||||||
for ( ; ip2 != _intPoints.end(); ip1 = ip2++ )
|
while ( ip2 != _intPoints.end() )
|
||||||
{
|
{
|
||||||
tranSet.clear();
|
tranSet.clear();
|
||||||
|
ip1 = ip2++;
|
||||||
while ( ip2->_paramOnLine - ip1->_paramOnLine <= tol && ip2 != _intPoints.end())
|
while ( ip2->_paramOnLine - ip1->_paramOnLine <= tol && ip2 != _intPoints.end())
|
||||||
{
|
{
|
||||||
tranSet.insert( ip1->_transition );
|
tranSet.insert( ip1->_transition );
|
||||||
@ -426,7 +427,7 @@ namespace
|
|||||||
}
|
}
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*
|
/*
|
||||||
* Return "is OUT" state for nodes before the given intersention point
|
* Return "is OUT" state for nodes before the given intersection point
|
||||||
*/
|
*/
|
||||||
bool GridLine::GetIsOutBefore( multiset< IntersectionPoint >::iterator ip, bool prevIsOut )
|
bool GridLine::GetIsOutBefore( multiset< IntersectionPoint >::iterator ip, bool prevIsOut )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user