Salome HOME
Show faces added by Create boundary elements
authoreap <eap@opencascade.com>
Mon, 28 Jan 2019 14:36:46 +0000 (17:36 +0300)
committereap <eap@opencascade.com>
Mon, 28 Jan 2019 14:36:46 +0000 (17:36 +0300)
src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx

index f03216c..ddf3c5f 100644 (file)
@@ -469,7 +469,10 @@ bool SMESHGUI_Make2DFrom3DOp::compute2DMesh( QStringList& theEntryList )
 
       for ( int i = 0; i < entries.count(); ++i )
         if ( SMESH_Actor* actor = SMESH::FindActorByEntry( entries[i].toUtf8().constData() ))
-          SMESH::Update(actor->getIO(),actor->GetVisibility());
+        {
+          actor->SetEntityMode( actor->GetEntityMode() | SMESH_Actor::eFaces );
+          SMESH::Update( actor->getIO(), actor->GetVisibility() );
+        }
       SMESH::RepaintCurrentView();
     }
   }