mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 10:40:34 +05:00
SALOME_TESTS/Grids/smesh/2D_mesh_QuadranglePreference_00/A1
Fix for degenerated EDGEs
This commit is contained in:
parent
4edb4666f4
commit
8b786444b7
@ -1138,14 +1138,25 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh &
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
const TopoDS_Edge& edge = *edgeIt;
|
const TopoDS_Edge& edge = *edgeIt;
|
||||||
if ( SMESH_Algo::isDegenerated( edge ) && myNeedSmooth )
|
nextSideVReached = nextSideV.IsSame( myHelper->IthVertex( 1, edge ));
|
||||||
|
if ( SMESH_Algo::isDegenerated( edge ))
|
||||||
{
|
{
|
||||||
// no side on a degenerated EDGE
|
if ( !myNeedSmooth ) // need to make a side on a degen edge
|
||||||
|
{
|
||||||
|
if ( sideEdges.empty() )
|
||||||
|
{
|
||||||
|
sideEdges.push_back( edge );
|
||||||
|
++nbUsedDegen;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sideEdges.push_back( edge );
|
sideEdges.push_back( edge );
|
||||||
nextSideVReached = nextSideV.IsSame( myHelper->IthVertex( 1, edge ));
|
|
||||||
}
|
}
|
||||||
++edgeIt;
|
++edgeIt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user