]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL53053: Mesh compute with 3D Extrusion algo crashes SALOME
authoreap <eap@opencascade.com>
Tue, 15 Mar 2016 15:52:11 +0000 (18:52 +0300)
committereap <eap@opencascade.com>
Tue, 15 Mar 2016 15:52:11 +0000 (18:52 +0300)
src/StdMeshers/StdMeshers_Prism_3D.cxx

index 225da46508cfb67c8f9ee14f28f0868c09c595f2..d2413b56469081654c7e11fe7de8133d3666a167 100644 (file)
@@ -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 );