Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
inoutcpp_2d.cpp File Reference
#include "vtkparser.hpp"
#include "libmmg2d.h"
#include "libmmg2d_private.h"
Include dependency graph for inoutcpp_2d.cpp:

Go to the source code of this file.

Functions

static int MMG2D_loadVtkMesh_part2 (MMG5_pMesh mesh, MMG5_pSol *sol, vtkDataSet **dataset, int8_t ptMeditRef, int8_t eltMeditRef, int nsols, int8_t metricData, int8_t lsData)
 Input / Output Functions that needs cpp features.
 
int MMG2D_loadVtpMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, const char *filename)
 Load a mesh and possibly a solution in VTP (VTK) format from file.
 
int MMG2D_loadVtpMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Load a mesh and multiple solutions in VTP (VTK) format from file.
 
int MMG2D_loadVtkMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, const char *filename)
 Load a mesh and possibly data in VTK format from file.
 
int MMG2D_loadVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Load a mesh and multiple solutions in VTK format from file.
 
int MMG2D_loadVtuMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, const char *filename)
 Load a mesh and possibly data in VTU (VTK) format from file.
 
int MMG2D_loadVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Load a mesh and multiple solutions in VTU (VTK) format from file.
 
int MMG2D_saveVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Save a mesh and optionally one data field in VTU format.
 
int MMG2D_saveVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Save a mesh and multiple data fields in VTU format.
 
int MMG2D_saveVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Save a mesh and optionally one solution in VTK format.
 
int MMG2D_saveVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Save a mesh and multiple data fields in VTK format.
 
int MMG2D_saveVtpMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Save a mesh and optionally one data field in VTP format.
 
int MMG2D_saveVtpMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Save a mesh and multiple data fields in VTP format.
 

Function Documentation

◆ MMG2D_loadVtkMesh()

int MMG2D_loadVtkMesh ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  sol,
const char *  filename 
)

Load a mesh and possibly data in VTK format from file.

Parameters
meshpointer to the mesh structure.
metpointer to the metric structure or the NULL pointer.
solpointer to the level-set structure or the NULL pointer.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

Read mesh and 0 or 1 data fields in VTK file format (.vtk extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTKMESH(mesh,met,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 165 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtkMesh_and_allData()

int MMG2D_loadVtkMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Load a mesh and multiple solutions in VTK format from file.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

This function reads a mesh and a list of data fields in VTK file format (.vtk extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTKMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 211 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtkMesh_part2()

static int MMG2D_loadVtkMesh_part2 ( MMG5_pMesh  mesh,
MMG5_pSol sol,
vtkDataSet **  dataset,
int8_t  ptMeditRef,
int8_t  eltMeditRef,
int  nsols,
int8_t  metricData,
int8_t  lsData 
)
static

Input / Output Functions that needs cpp features.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5

Definition at line 41 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtpMesh()

int MMG2D_loadVtpMesh ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  sol,
const char *  filename 
)

Load a mesh and possibly a solution in VTP (VTK) format from file.

Parameters
meshpointer to the mesh structure.
metpointer to the metric structure or the NULL pointer.
solpointer to the level-set structure or the NULL pointer.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

Read a mesh and 0 or 1 data fields in VTK vtp file format (.vtp extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTPMESH(mesh,met,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 84 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtpMesh_and_allData()

int MMG2D_loadVtpMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Load a mesh and multiple solutions in VTP (VTK) format from file.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

Read a mesh and a list of data fields in VTK vtp file format (.vtp extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTPMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 130 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtuMesh()

int MMG2D_loadVtuMesh ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  sol,
const char *  filename 
)

Load a mesh and possibly data in VTU (VTK) format from file.

Parameters
meshpointer to the mesh structure.
metpointer to the metric structure or the NULL pointer.
solpointer to the level-set structure or the NULL pointer.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

Read a mesh and 0 or 1 data fields in VTK vtu file format (.vtu extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTUMESH(mesh,met,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 246 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_loadVtuMesh_and_allData()

int MMG2D_loadVtuMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Load a mesh and multiple solutions in VTU (VTK) format from file.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to load.
Returns
0 if the file is not found, -1 if failing for another reason (insufficient memory, file format...), 1 on success.

Read a mesh and a list of data fields in VTK vtu file format (.vtu extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTUMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 292 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtkMesh()

int MMG2D_saveVtkMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)

Save a mesh and optionally one solution in VTK format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and 0 or 1 data fields in Vtk file format (.vtk extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTKMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 369 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtkMesh_and_allData()

int MMG2D_saveVtkMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Save a mesh and multiple data fields in VTK format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and a list of data fields in Vtk file format (.vtk extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTKMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 384 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtpMesh()

int MMG2D_saveVtpMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)

Save a mesh and optionally one data field in VTP format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and optionally one data field in polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTPMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 404 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtpMesh_and_allData()

int MMG2D_saveVtpMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Save a mesh and multiple data fields in VTP format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and a list of data fields in polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTPMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 420 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtuMesh()

int MMG2D_saveVtuMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)

Save a mesh and optionally one data field in VTU format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and 0 or 1 data fields in vtu Vtk file format (.vtu extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTUMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 334 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_saveVtuMesh_and_allData()

int MMG2D_saveVtuMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)

Save a mesh and multiple data fields in VTU format.

Parameters
meshpointer to the mesh structure.
solpointer to the solution structure.
filenamename of the file to write.
Returns
0 on failure, 1 otherwise.

This function writes a mesh and a list of data fields in vtu Vtk file format (.vtu extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTUMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 349 of file inoutcpp_2d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: