From 9e5c18b4c8e6c85cc5bf3ce9cb2bf25ae6d74b06 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 15 Jun 2011 12:57:07 +0000 Subject: [PATCH] fix regression of smesh/3D_mesh_Polyhedrons/A2 in makeWalls(), add trias or quads on sides of polyhedrons instead of polygons if possible --- src/SMESH/SMESH_MeshEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.2