From: eap Date: Tue, 15 Mar 2016 15:52:11 +0000 (+0300) Subject: IPAL53053: Mesh compute with 3D Extrusion algo crashes SALOME X-Git-Tag: V7_8_0a2~4^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=14534b55573063b254a2c3a6108bb2e0ca85b9fd;p=modules%2Fsmesh.git IPAL53053: Mesh compute with 3D Extrusion algo crashes SALOME --- diff --git a/src/StdMeshers/StdMeshers_Prism_3D.cxx b/src/StdMeshers/StdMeshers_Prism_3D.cxx index 225da4650..d2413b564 100644 --- a/src/StdMeshers/StdMeshers_Prism_3D.cxx +++ b/src/StdMeshers/StdMeshers_Prism_3D.cxx @@ -3298,6 +3298,9 @@ bool StdMeshers_PrismAsBlock::Init(SMESH_MesherHelper* helper, if ( !myHelper->LoadNodeColumns( faceColumns, (*quad)->face, quadBot, meshDS )) return error(COMPERR_BAD_INPUT_MESH, TCom("Can't find regular quadrangle mesh ") << "on a side face #" << MeshDS()->ShapeToIndex( (*quad)->face )); + + if ( !faceColumns.empty() && (int)faceColumns.begin()->second.size() != VerticalSize() ) + return error(COMPERR_BAD_INPUT_MESH, "Different 'vertical' discretization"); } // edge columns int id = MeshDS()->ShapeToIndex( *edgeIt );