#include <SMESHDS_Group.hxx>
#include <SMESH_Gen.hxx>
#include <SMESH_Group.hxx>
+#include <SMESH_MGLicenseKeyGen.hxx>
#include <SMESH_Mesh.hxx>
#include <SMESH_MeshEditor.hxx>
#include <SMESH_MesherHelper.hxx>
//set_param(css, "process_3d_topology", _precadProcess3DTopology ? "1" : "0");
//set_param(css, "discard_input_topology", _precadDiscardInput ? "1" : "0");
//set_param(css, "max_number_of_points_per_patch", "1000000");
-
+
bool useGradation = false;
switch (_physicalMesh)
{
// distene_sizemap_delete(iso_sizemap_e);
// if(iso_sizemap_f)
// distene_sizemap_delete(iso_sizemap_f);
- //
+ //
// // if(clean_geo_sizemap_e)
// // distene_sizemap_delete(clean_geo_sizemap_e);
// // if(clean_geo_sizemap_f)
// TODO: be able to use a mesh in input.
// See imsh usage in Products/templates/mg-cadsurf_template_common.cpp
// => cadsurf_set_mesh
-
+ std::string errorTxt;
+ if ( !SMESHUtils_MGLicenseKeyGen::SignCAD( c, errorTxt ))
+ return error( "Problem with library SalomeMeshGemsKeyGenerator: " + errorTxt );
+
// Use the original dcad
cadsurf_set_dcad(css, dcad);
meshgems_mesh_set_quadrangle_vertices( msh, iQ++, nodeIDs );
}
+ std::string errorTxt;
+ if ( !SMESHUtils_MGLicenseKeyGen::SignMesh( msh, errorTxt ))
+ return error( "Problem with library SalomeMeshGemsKeyGenerator: " + errorTxt );
+
ret = cadsurf_set_mesh(css, msh);
if ( ret != STATUS_OK ) return error("Pb in cadsurf_set_mesh()");