-// Copyright (C) 2007-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
const SMESHDS_Mesh* theMeshDS)
{
int meshID = theHexaInput->GmfOpenMesh( theFile, GmfWrite, GMFVERSION, GMFDIMENSION);
-
+ theHexaInput->SetIsInputMesh( true ); // it's a mesh file
+
// nodes
int iN = 0;
smIdType nbNodes = theMeshDS->NbNodes();
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
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 &&
mgInput->GmfOpenMesh( myVerticesFile.c_str(), GmfWrite, GMFVERSION, GMFDIMENSION );
int solFileID =
mgInput->GmfOpenMesh( mySolFile.c_str(), GmfWrite, GMFVERSION, GMFDIMENSION );
+
+ mgInput->SetIsInputMesh( false ); // they are not mesh files
int pointsNumber = points.size();