]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix regression of smesh/3D_mesh_Polyhedrons/A2
authoreap <eap@opencascade.com>
Wed, 15 Jun 2011 12:57:07 +0000 (12:57 +0000)
committereap <eap@opencascade.com>
Wed, 15 Jun 2011 12:57:07 +0000 (12:57 +0000)
  in makeWalls(), add trias or quads on sides of polyhedrons instead
  of polygons if possible

src/SMESH/SMESH_MeshEditor.cxx

index 1bace2c2e75f663258d923f1d812124452bf95eb..93e893722dd004a8f3e3bd8ebc9a8b75724a19ae 100644 (file)
@@ -4115,7 +4115,7 @@ void SMESH_MeshEditor::makeWalls (TNodeOfNodeListMap &     mapNewNodes,
                 if ( f )
                   aMesh->ChangeElementNodes( f, &polygon_nodes[0], nbn );
                 else
-                  myLastCreatedElems.Append(aMesh->AddPolygonalFace(polygon_nodes));
+                  AddElement(polygon_nodes, SMDSAbs_Face, polygon_nodes.size()>4);
               }
             }