fs::path shape_file=tmp_folder / fs::path("shape.step");
fs::path param_file=tmp_folder / fs::path("netgen2d_param.txt");
fs::path log_file=tmp_folder / fs::path("run.log");
- //TODO: Handle variable mesh_name
- std::string mesh_name = "Maillage_1";
//Writing Shape
exportShape(shape_file.string(), aShape);
fs::path log_file=tmp_folder / fs::path("run.log");
fs::path cmd_file=tmp_folder / fs::path("cmd.log");
//TODO: Handle variable mesh_name
- std::string mesh_name = "Maillage_1";
+ std::string mesh_name = "MESH";
//Writing Shape
exportShape(shape_file.string(), aShape);
//=============================================================================
NETGENPlugin_NETGEN_3D_SA::NETGENPlugin_NETGEN_3D_SA()
- : NETGENPlugin_NETGEN_3D(0, new SMESH_Gen())
+ : NETGENPlugin_NETGEN_3D(0, _gen=new SMESH_Gen())
{
_name = "NETGEN_3D_SA";
}
NETGENPlugin_NETGEN_3D_SA::~NETGENPlugin_NETGEN_3D_SA()
{
+ if(_gen)
+ delete _gen;
}
SMESH_Gen gen;
std::unique_ptr<SMESH_Mesh> myMesh(gen.CreateMesh(false));
- //TODO: To define
- std::string mesh_name = "Maillage_1";
- importMesh(input_mesh_file, *myMesh, mesh_name);
+ importMesh(input_mesh_file, *myMesh);
// Importing shape
TopoDS_Shape myShape;
#include <vector>
#include <map>
-class StdMeshers_ViscousLayers;
-class StdMeshers_MaxElementVolume;
-class NETGENPlugin_Hypothesis;
class NETGENPlugin_NetgenLibWrapper;
class netgen_params;
class SMDS_MeshNode;
+class SMESH_Gen;
using namespace std;
);
std::string _element_orientation_file="";
+ SMESH_Gen *_gen=nullptr;
};