]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0022202: EDF SMESH: Regression in a script meshing prisms and hexaedrons
authoreap <eap@opencascade.com>
Fri, 26 Apr 2013 10:21:24 +0000 (10:21 +0000)
committereap <eap@opencascade.com>
Fri, 26 Apr 2013 10:21:24 +0000 (10:21 +0000)
-  for ( int iF = 1; iF < faceToSolids.Extent(); ++iF )
+  for ( int iF = 1; iF <= faceToSolids.Extent(); ++iF )

src/StdMeshers/StdMeshers_Prism_3D.cxx

index cac08865fea808fdd0de25153d6d43e93fd9fe6c..149e35a0ebbfbc8f1b9b5ea872f9857e6ff69afe 100644 (file)
@@ -470,7 +470,7 @@ bool StdMeshers_Prism_3D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape& theSh
   list< TopoDS_Face > meshedFaces, notQuadMeshedFaces, notQuadFaces;
   const bool meshHasQuads = ( theMesh.NbQuadrangles() > 0 );
   //StdMeshers_Quadrangle_2D* quadAlgo = TQuadrangleAlgo::instance( this );
-  for ( int iF = 1; iF < faceToSolids.Extent(); ++iF )
+  for ( int iF = 1; iF <= faceToSolids.Extent(); ++iF )
   {
     const TopoDS_Face& face = TopoDS::Face( faceToSolids.FindKey( iF ));
     SMESH_subMesh*   faceSM = theMesh.GetSubMesh( face );