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 225da46..d2413b5 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 );