From 462bb024c4261258708377bb23b150aa4e0cd47c Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 22 Nov 2021 13:50:19 +0300 Subject: [PATCH] bos #26666 [CEA] Sizemap ignored by mg-hexa --- src/HexoticPlugin/HexoticPlugin_Hexotic.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 && -- 2.39.2