]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for Bug IPAL11982:
authorenk <enk@opencascade.com>
Thu, 23 Mar 2006 09:22:18 +0000 (09:22 +0000)
committerenk <enk@opencascade.com>
Thu, 23 Mar 2006 09:22:18 +0000 (09:22 +0000)
TC: impossible to create a polygon

src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx

index df2bb4df18227499a267cbd2d308177a8aa19966..09b12806c5742963971be5b342a64e0f830bfb44 100644 (file)
@@ -446,8 +446,14 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply()
     switch (myElementType) {
     case SMDSAbs_Edge:
       aMeshEditor->AddEdge(anArrayOfIdeces.inout()); break;
-    case SMDSAbs_Face:
-      aMeshEditor->AddFace(anArrayOfIdeces.inout()); break;
+    case SMDSAbs_Face:{
+      if(myIsPoly)
+       aMeshEditor->AddPolygonalFace(anArrayOfIdeces.inout());
+      else
+       aMeshEditor->AddFace(anArrayOfIdeces.inout());
+      break;
+
+    }
     case SMDSAbs_Volume:
       aMeshEditor->AddVolume(anArrayOfIdeces.inout()); break;
     default:;