From: eap Date: Mon, 22 Nov 2021 10:50:19 +0000 (+0300) Subject: bos #26666 [CEA] Sizemap ignored by mg-hexa X-Git-Tag: V9_8_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=462bb024c4261258708377bb23b150aa4e0cd47c;p=plugins%2Fhexoticplugin.git bos #26666 [CEA] Sizemap ignored by mg-hexa --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 8833303..97dbfc0 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -790,7 +790,8 @@ HexoticPlugin_Hexotic::getHexoticCommand(const TCollection_AsciiString& Hexotic_ TCollection_AsciiString minl = " --min_level ", maxl = " --max_level ", angle = " --ridge_angle "; TCollection_AsciiString mins = " --min_size ", maxs = " --max_size "; TCollection_AsciiString in = " --in ", out = " --out "; - TCollection_AsciiString sizeMap = " --sizemap "; + TCollection_AsciiString sizeMap = " --background_sizemap "; + TCollection_AsciiString sizeMapMesh = " --background_mesh "; TCollection_AsciiString ignoreRidges = " --compute_ridges no ", invalideElements = " --allow_invalid_elements yes "; TCollection_AsciiString subdom = " --components "; #ifndef WIN32 @@ -870,9 +871,10 @@ HexoticPlugin_Hexotic::getHexoticCommand(const TCollection_AsciiString& Hexotic_ if (_hexoticSharpAngleThreshold > 0) run_Hexotic += angle + sharpAngle; - - if (_sizeMaps.begin() != _sizeMaps.end() && forExecutable ) - run_Hexotic += sizeMap + Hexotic_SizeMap_Prefix + ".sol"; + + if ( !_sizeMaps.empty() && forExecutable ) + run_Hexotic += ( sizeMap + Hexotic_SizeMap_Prefix + ".sol " + + sizeMapMesh + Hexotic_SizeMap_Prefix + ".mesh " ); if (_nbLayers > 0 && _firstLayerSize > 0 &&