From aca191d9c929e62256ebcc76fb33c222e5f19f57 Mon Sep 17 00:00:00 2001 From: skl Date: Fri, 3 Aug 2007 07:40:38 +0000 Subject: [PATCH] Corrected for bug NPAL16567. --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2