// Temporary folder for run
+#ifdef WIN32
+ fs::path tmp_folder = aMesh.tmp_folder / fs::path("Volume-%%%%-%%%%");
+#else
fs::path tmp_folder = aMesh.tmp_folder / fs::unique_path(fs::path("Volume-%%%%-%%%%"));
+#endif
fs::create_directories(tmp_folder);
// Using MESH2D generated after all triangles where created.
fs::path mesh_file=aMesh.tmp_folder / fs::path("Mesh2D.med");
{
SMESH_MeshLocker myLocker(&aMesh);
//Writing Shape
- exportShape(shape_file.string(), aShape);
+ SMESH_DriverShape::exportShape(shape_file.string(), aShape);
//Writing hypo
netgen_params aParams;
// Building arguments for QProcess
- QString program = run_mesher_exe.c_str();
+ QString program = run_mesher_exe.string().c_str();
QStringList arguments;
arguments << "NETGEN3D";
- arguments << mesh_file.c_str();
- arguments << shape_file.c_str();
- arguments << param_file.c_str();
- arguments << element_orientation_file.c_str();
- arguments << new_element_file.c_str();
+ arguments << mesh_file.string().c_str();
+ arguments << shape_file.string().c_str();
+ arguments << param_file.string().c_str();
+ arguments << element_orientation_file.string().c_str();
+ arguments << new_element_file.string().c_str();
arguments << "NONE";
- QString out_file = log_file.c_str();
+ QString out_file = log_file.string().c_str();
QProcess myProcess;
myProcess.setStandardOutputFile(out_file);
std::unique_ptr<SMESH_Mesh> myMesh(_gen->CreateMesh(false));
- importMesh(input_mesh_file, *myMesh);
+ SMESH_DriverMesh::importMesh(input_mesh_file, *myMesh);
// Importing shape
TopoDS_Shape myShape;
- importShape(shape_file, myShape);
+ SMESH_DriverShape::importShape(shape_file, myShape);
// Importing hypothesis
netgen_params myParams;
if(!output_mesh_file.empty()){
std::string meshName = "MESH";
- exportMesh(output_mesh_file, *myMesh, meshName);
+ SMESH_DriverMesh::exportMesh(output_mesh_file, *myMesh, meshName);
}
return ret;