Salome HOME
020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement / note 0011031
authoreap <eap@opencascade.com>
Wed, 15 Jun 2011 11:08:06 +0000 (11:08 +0000)
committereap <eap@opencascade.com>
Wed, 15 Jun 2011 11:08:06 +0000 (11:08 +0000)
   Enable "create 2D mesh on 3D" on groups

src/SMESHGUI/SMESHGUI.cxx

index 59ca847cdca673b4f8dd70701bc689eb10963cb2..ba566cc24b74ec36fc25dfde9265037c1e181927 100644 (file)
@@ -3727,8 +3727,9 @@ void SMESHGUI::initialize( CAM_Application* app )
   popupMgr()->insert( separator(), -1, 0 );
   createPopupItem( 4043, OB, mesh );                       // CLEAR_MESH
   popupMgr()->insert( separator(), -1, 0 );
-  createPopupItem( 417, OB, mesh + " " + subMesh );         // convert to quadratic
-  createPopupItem( 418, OB, mesh/*, "&& " + hasVolumes*/);  // create 2D mesh on 3D
+  createPopupItem( 417, OB, mesh + " " + subMesh );        // convert to quadratic
+  createPopupItem( 418, OB, mesh + " " + group,            // create 2D mesh from 3D
+                   "&& dim>=2"); 
   popupMgr()->insert( separator(), -1, 0 );
 
   QString only_one_non_empty = QString( " && %1=1 && numberOfNodes>0" ).arg( dc );