mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
22539: [CEA 1126] Quadrangle mapping produces a non conform mesh
Add warning on a bad quality quad
This commit is contained in:
parent
057ae95be6
commit
479bf562b6
@ -648,7 +648,16 @@ bool StdMeshers_Quadrangle_2D::computeQuadDominant(SMESH_Mesh& aMesh,
|
||||
else
|
||||
{
|
||||
if ( SMDS_MeshFace* face = myHelper->AddFace(a, b, d, c))
|
||||
{
|
||||
meshDS->SetMeshElementOnShape(face, geomFaceID);
|
||||
SMESH_ComputeErrorPtr& err = aMesh.GetSubMesh( aFace )->GetComputeError();
|
||||
if ( !err || err->IsOK() || err->myName < COMPERR_WARNING )
|
||||
{
|
||||
err.reset( new SMESH_ComputeError( COMPERR_WARNING,
|
||||
"Bad quality quad created"));
|
||||
err->myBadElements.push_back( face );
|
||||
}
|
||||
}
|
||||
--i;
|
||||
}
|
||||
}
|
||||
@ -820,7 +829,16 @@ bool StdMeshers_Quadrangle_2D::computeQuadDominant(SMESH_Mesh& aMesh,
|
||||
else
|
||||
{
|
||||
if ( SMDS_MeshFace* face = myHelper->AddFace(a, b, d, c))
|
||||
{
|
||||
meshDS->SetMeshElementOnShape(face, geomFaceID);
|
||||
SMESH_ComputeErrorPtr& err = aMesh.GetSubMesh( aFace )->GetComputeError();
|
||||
if ( !err || err->IsOK() || err->myName < COMPERR_WARNING )
|
||||
{
|
||||
err.reset( new SMESH_ComputeError( COMPERR_WARNING,
|
||||
"Bad quality quad created"));
|
||||
err->myBadElements.push_back( face );
|
||||
}
|
||||
}
|
||||
--i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user