From: eap Date: Wed, 15 Jun 2011 12:57:07 +0000 (+0000) Subject: fix regression of smesh/3D_mesh_Polyhedrons/A2 X-Git-Tag: V6_3_1rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e5c18b4c8e6c85cc5bf3ce9cb2bf25ae6d74b06;p=modules%2Fsmesh.git fix regression of smesh/3D_mesh_Polyhedrons/A2 in makeWalls(), add trias or quads on sides of polyhedrons instead of polygons if possible --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 1bace2c2e..93e893722 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -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); } }