Version: 9.12.0
SMESH_DriverMesh Class Reference

#include <SMESH_DriverMesh.hxx>

Static Public Member Functions

static bool diffMEDFile (const std::string mesh_file1, const std::string mesh_file2, const std::string mesh_name)
 Compares the mesh from two mesh files (MED) More...
 
static int importMesh (const std::string mesh_file, SMESH_Mesh &aMesh)
 Import a mesh from a mesh file (MED) into a SMESH_Mesh object. More...
 
static int exportMesh (const std::string mesh_file, SMESH_Mesh &aMesh, const std::string meshName)
 Export the content of a SMESH_Mesh into a mesh file (MED) More...
 

Member Function Documentation

◆ diffMEDFile()

bool SMESH_DriverMesh::diffMEDFile ( const std::string  mesh_file1,
const std::string  mesh_file2,
const std::string  mesh_name 
)
static

Compares the mesh from two mesh files (MED)

Parameters
mesh_file1First file
mesh_file2Second file
mesh_nameName of the mesh in the files
Returns
true if the mesh within the files are identical

◆ exportMesh()

int SMESH_DriverMesh::exportMesh ( const std::string  mesh_file,
SMESH_Mesh aMesh,
const std::string  mesh_name 
)
static

Export the content of a SMESH_Mesh into a mesh file (MED)

Parameters
mesh_filethe file
aMeshthe object
mesh_namename of the mesh in the file
Returns
error code

References SMESH_Mesh::ExportMED(), and MESSAGE.

Referenced by SMESH_Gen::parallelComputeSubMeshes().

◆ importMesh()

int SMESH_DriverMesh::importMesh ( const std::string  mesh_file,
SMESH_Mesh aMesh 
)
static

Import a mesh from a mesh file (MED) into a SMESH_Mesh object.

Parameters
mesh_filethe file
aMeshthe object
mesh_namethe name of the mesh in the file
Returns
error code

References getMeshName(), SMESH_Mesh::MEDToMesh(), and MESSAGE.