From: skl Date: Fri, 3 Aug 2007 07:40:38 +0000 (+0000) Subject: Corrected for bug NPAL16567. X-Git-Tag: T32x_16Aug2007_16h00m~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aca191d9c929e62256ebcc76fb33c222e5f19f57;p=modules%2Fsmesh.git Corrected for bug NPAL16567. --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index c880c9ce1..2c3c74128 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -239,6 +239,9 @@ bool StdMeshers_Quadrangle_2D::Compute (SMESH_Mesh& aMesh, const vector& uv_e2 = quad->side[2]->GetUVPtStruct(true,1 ); const vector& uv_e3 = quad->side[3]->GetUVPtStruct(false,0); + if ( uv_e0.empty() || uv_e1.empty() || uv_e2.empty() || uv_e3.empty() ) + return error( COMPERR_BAD_INPUT_MESH ); + double eps = Precision::Confusion(); // Boundary quadrangles