mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
regression on "imps/A3" test
* avoid SIGSEGV in case of invalid input mesh
This commit is contained in:
parent
d253ee88a5
commit
6c0d85e97d
@ -1483,6 +1483,9 @@ bool StdMeshers_Quadrangle_2D::ComputeQuadPref (SMESH_Mesh & aMesh,
|
||||
const vector<UVPtStruct>& uv_et = quad->side[2]->GetUVPtStruct(true,1 );
|
||||
const vector<UVPtStruct>& uv_el = quad->side[3]->GetUVPtStruct(false,0);
|
||||
|
||||
if ( uv_eb.size() != nb || uv_er.size() != nr || uv_et.size() != nt || uv_el.size() != nl )
|
||||
return error( COMPERR_BAD_INPUT_MESH );
|
||||
|
||||
// arrays for normalized params
|
||||
//cout<<"Dump B:"<<endl;
|
||||
TColStd_SequenceOfReal npb, npr, npt, npl;
|
||||
|
Loading…
Reference in New Issue
Block a user