regression with bos #24400 [CEA] Option in SALOME for not storing in med files the indices (number of nodes)

Store number in study, else IDs of elements change

+ In Mesh Info dlg, set size of IDs in the viewer from preference
This commit is contained in:
eap 2021-07-23 18:03:09 +03:00
parent 2a0f82c609
commit 3dd9e6ddb3
2 changed files with 15 additions and 6 deletions

View File

@ -22,8 +22,11 @@
#include "SMESHGUI_IdPreview.h"
#include <SALOME_Actor.h>
#include <SMDS_Mesh.hxx>
#include <SALOME_Actor.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <SVTK_ViewWindow.h>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
@ -78,7 +81,13 @@ SMESHGUI_IdPreview::SMESHGUI_IdPreview(SVTK_ViewWindow* theViewWindow):
vtkTextProperty* aPtsTextProp = vtkTextProperty::New();
aPtsTextProp->SetFontFamilyToTimes();
static int aPointsFontSize = 12;
int aPointsFontSize = 12;
if ( SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr() )
if ( mgr->hasValue( "SMESH", "numbering_node_font" ) )
{
QFont f = mgr->fontValue( "SMESH", "numbering_node_font" );
aPointsFontSize = f.pointSize();
}
aPtsTextProp->SetFontSize(aPointsFontSize);
aPtsTextProp->SetBold(1);
aPtsTextProp->SetItalic(0);

View File

@ -4208,7 +4208,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
// MED writer to be used by storage process
DriverMED_W_SMESHDS_Mesh writer;
writer.SetFile( meshfile.ToCString() );
writer.SetSaveNumbers( false ); // bos #24400
//writer.SetSaveNumbers( false ); // bos #24400 -- it leads to change of element IDs
// IMP issue 20918
// SetStoreName() to groups before storing hypotheses to let them refer to