From: eap Date: Wed, 16 Apr 2014 11:26:37 +0000 (+0400) Subject: 22313: EDF 2538 SMESH: Face with layers with ViscousLayer3D Hypothesis X-Git-Tag: V7_4_0rc1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0de979b4949cfda1ed932273abb9a92ecc71a4ec;p=modules%2Fsmesh.git 22313: EDF 2538 SMESH: Face with layers with ViscousLayer3D Hypothesis Avoid diagonal inversion of trias of different FACEs --- diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index a012d0292..d4f0f678f 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -4205,7 +4205,9 @@ void _ViscousBuilder::fixBadFaces(const TopoDS_Face& F, trias [iSide].first = badTrias[iTia]; trias [iSide].second = SMESH_MeshAlgos::FindFaceInSet( n1, n2, emptySet, involvedFaces, & i1, & i2 ); - if ( ! trias[iSide].second || trias[iSide].second->NbCornerNodes() != 3 ) + if (( ! trias[iSide].second ) || + ( trias[iSide].second->NbCornerNodes() != 3 ) || + ( ! sm->Contains( trias[iSide].second ))) continue; // aspect ratio of an adjacent tria