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

Go to the source code of this file.

Functions

static int MMGS_loadVtkMesh_part2 (MMG5_pMesh mesh, MMG5_pSol *sol, vtkDataSet **dataset, int8_t ptMeditRef, int8_t eltMeditRef, MMG5_int nsols, int8_t metricData, int8_t lsData)
 Input / Output Functions that needs cpp features.
 
int MMGS_loadVtpMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, const char *filename)
 Load a mesh and optionally a solution in VTP (VTK) format from file.
 
int MMGS_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 MMGS_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 MMGS_loadVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Load a mesh and multiple solutions in VTK format from file.
 
int MMGS_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 MMGS_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 MMGS_saveVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Write mesh and optionally one data field vtu Vtk file format (.vtu extension).
 
int MMGS_saveVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Write a mesh and multiple data fields in vtu Vtk file format (.vtu extension).
 
int MMGS_saveVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Write mesh and optionally one data field in Vtk file format (.vtk extension).
 
int MMGS_saveVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Save a mesh and multiple data fields in VTK format.
 
int MMGS_saveVtpMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 Save a mesh and optionally one data field in VTP format.
 
int MMGS_saveVtpMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 Save a mesh and multiple data fields in VTP format.
 

Function Documentation

◆ MMGS_loadVtkMesh()

int MMGS_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 on failure, 1 otherwise.

Read a mesh and optionally one data field in VTK vtk file format (.vtk extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 155 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtkMesh_and_allData()

int MMGS_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 on failure, 1 otherwise.

Read a mesh and multiple data field in VTK vtk file format (.vtk extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 199 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtkMesh_part2()

static int MMGS_loadVtkMesh_part2 ( MMG5_pMesh  mesh,
MMG5_pSol sol,
vtkDataSet **  dataset,
int8_t  ptMeditRef,
int8_t  eltMeditRef,
MMG5_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 40 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtpMesh()

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

Load a mesh and optionally 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 on failure, 1 otherwise.

This function reads a mesh and optionally one data field in VTK vtp file format (.vtp extension). We read only low-order vertices, edges, triangles and quadrangles.

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 75 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtpMesh_and_allData()

int MMGS_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 on failure, 1 otherwise.

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

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 119 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtuMesh()

int MMGS_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 on failure, 1 otherwise.

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

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 235 of file inoutcpp_s.cpp.

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

◆ MMGS_loadVtuMesh_and_allData()

int MMGS_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 on failure, 1 otherwise.

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

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 279 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtkMesh()

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

Write mesh and optionally one data field in Vtk file format (.vtk extension).

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

‍ SUBROUTINE MMGS_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 350 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtkMesh_and_allData()

int MMGS_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 MMGS_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 365 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtpMesh()

int MMGS_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 in polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 385 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtpMesh_and_allData()

int MMGS_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 multiple data fields in polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMGS_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 400 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtuMesh()

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

Write mesh and optionally one data field vtu Vtk file format (.vtu extension).

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

‍ SUBROUTINE MMGS_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 315 of file inoutcpp_s.cpp.

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

◆ MMGS_saveVtuMesh_and_allData()

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

Write a mesh and multiple data fields in vtu Vtk file format (.vtu extension).

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

‍ SUBROUTINE MMGS_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 330 of file inoutcpp_s.cpp.

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