Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
libmmg2d.h
Go to the documentation of this file.
1/* =============================================================================
2** This file is part of the mmg software package for the tetrahedral
3** mesh modification.
4** Copyright (c) Bx INP/CNRS/Inria/UBordeaux/UPMC, 2004-
5**
6** mmg is free software: you can redistribute it and/or modify it
7** under the terms of the GNU Lesser General Public License as published
8** by the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** mmg is distributed in the hope that it will be useful, but WITHOUT
12** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14** License for more details.
15**
16** You should have received a copy of the GNU Lesser General Public
17** License and of the GNU General Public License along with mmg (in
18** files COPYING.LESSER and COPYING). If not, see
19** <http://www.gnu.org/licenses/>. Please read their terms carefully and
20** use this copy of the mmg distribution only if you accept them.
21** =============================================================================
22*/
34#ifndef MMG2DLIB_H
35#define MMG2DLIB_H
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#include "mmg/common/libmmgtypes.h"
42#include "mmg/mmg2d/mmg2d_export.h"
43
47#define MMG2D_LMAX 1024
48
92 };
93
94/*----------------------------- functions header -----------------------------*/
95/* Initialization functions */
96/* init structures */
97
122 LIBMMG2D_EXPORT int MMG2D_Init_mesh(const int starter,...);
123
137
150
151/* init file names */
241 LIBMMG2D_EXPORT int MMG2D_Set_iparameter(MMG5_pMesh mesh, MMG5_pSol sol, int iparam, MMG5_int val);
242
262 LIBMMG2D_EXPORT int MMG2D_Set_dparameter(MMG5_pMesh mesh, MMG5_pSol sol, int dparam, double val);
263
289 MMG5_int ref,double hmin,double hmax,double hausd);
290
312 MMG5_int rin, MMG5_int rex);
313
334
335
336/* init structure datas */
357 LIBMMG2D_EXPORT int MMG2D_Set_meshSize(MMG5_pMesh mesh, MMG5_int np, MMG5_int nt, MMG5_int nquad, MMG5_int na);
381 MMG5_int np, int typSol);
407 MMG5_int nentities, int *typSol);
428 LIBMMG2D_EXPORT int MMG2D_Set_vertex(MMG5_pMesh mesh, double c0, double c1,
429 MMG5_int ref,MMG5_int pos);
452 LIBMMG2D_EXPORT int MMG2D_Set_vertices(MMG5_pMesh mesh, double *vertices,MMG5_int *refs);
487
504
521
542 LIBMMG2D_EXPORT int MMG2D_Set_triangle(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1,
543 MMG5_int v2, MMG5_int ref, MMG5_int pos);
563 LIBMMG2D_EXPORT int MMG2D_Set_triangles(MMG5_pMesh mesh, MMG5_int *tria, MMG5_int *refs);
564
581
598
620 LIBMMG2D_EXPORT int MMG2D_Set_quadrilateral(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1,
621 MMG5_int v2, MMG5_int v3, MMG5_int ref, MMG5_int pos);
622
644 MMG5_int *refs);
645
666 LIBMMG2D_EXPORT int MMG2D_Set_edge(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1, MMG5_int ref, MMG5_int pos);
684 LIBMMG2D_EXPORT int MMG2D_Set_edges(MMG5_pMesh mesh, MMG5_int *edges, MMG5_int* refs);
751 LIBMMG2D_EXPORT int MMG2D_Set_scalarSol(MMG5_pSol met, double s, MMG5_int pos);
788 LIBMMG2D_EXPORT int MMG2D_Set_vectorSol(MMG5_pSol met, double vx,double vy,
789 MMG5_int pos);
806 LIBMMG2D_EXPORT int MMG2D_Set_vectorSols(MMG5_pSol met, double *sols);
827 LIBMMG2D_EXPORT int MMG2D_Set_tensorSol(MMG5_pSol met, double m11, double m12, double m22,
828 MMG5_int pos);
846 LIBMMG2D_EXPORT int MMG2D_Set_tensorSols(MMG5_pSol met, double *sols);
868 LIBMMG2D_EXPORT int MMG2D_Set_ithSol_inSolsAtVertices(MMG5_pSol sol,int i, double* s,MMG5_int pos);
891
911 LIBMMG2D_EXPORT int MMG2D_Get_meshSize(MMG5_pMesh mesh, MMG5_int* np, MMG5_int* nt, MMG5_int* nquad, MMG5_int* na);
931 LIBMMG2D_EXPORT int MMG2D_Get_solSize(MMG5_pMesh mesh, MMG5_pSol sol, int* typEntity, MMG5_int* np,
932 int* typSol);
955 MMG5_int* nentities,int* typSol);
978 LIBMMG2D_EXPORT int MMG2D_Get_vertex(MMG5_pMesh mesh, double* c0, double* c1, MMG5_int* ref,
979 int* isCorner, int* isRequired);
1003 LIBMMG2D_EXPORT int MMG2D_GetByIdx_vertex(MMG5_pMesh mesh, double* c0, double* c1, MMG5_int* ref,
1004 int* isCorner, int* isRequired,MMG5_int idx);
1033 LIBMMG2D_EXPORT int MMG2D_Get_vertices(MMG5_pMesh mesh, double* vertices, MMG5_int* refs,
1034 int* areCorners, int* areRequired);
1058 MMG5_int* v1, MMG5_int* v2, MMG5_int* ref
1059 ,int* isRequired);
1084 LIBMMG2D_EXPORT int MMG2D_Get_triangles(MMG5_pMesh mesh, MMG5_int* tria, MMG5_int* refs,
1085 int* areRequired);
1086
1112 LIBMMG2D_EXPORT int MMG2D_Get_quadrilateral(MMG5_pMesh mesh, MMG5_int* v0, MMG5_int* v1, MMG5_int* v2,
1113 MMG5_int* v3,MMG5_int* ref, int* isRequired);
1140 LIBMMG2D_EXPORT int MMG2D_Get_quadrilaterals(MMG5_pMesh mesh, MMG5_int* quadra,MMG5_int* refs,
1141 int* areRequired);
1166 LIBMMG2D_EXPORT int MMG2D_Get_edge(MMG5_pMesh mesh, MMG5_int* e0, MMG5_int* e1, MMG5_int* ref
1167 ,int* isRidge, int* isRequired);
1192 LIBMMG2D_EXPORT int MMG2D_Get_edges(MMG5_pMesh mesh,MMG5_int *edges,MMG5_int* refs,
1193 int *areRidges,int *areRequired);
1194
1212
1228 LIBMMG2D_EXPORT int MMG2D_Get_scalarSol(MMG5_pSol met, double* s);
1262 LIBMMG2D_EXPORT int MMG2D_Get_vectorSol(MMG5_pSol met, double* vx, double* vy);
1279 LIBMMG2D_EXPORT int MMG2D_Get_vectorSols(MMG5_pSol met, double* sols);
1297 LIBMMG2D_EXPORT int MMG2D_Get_tensorSol(MMG5_pSol met, double *m11,double *m12,double *m22);
1314 LIBMMG2D_EXPORT int MMG2D_Get_tensorSols(MMG5_pSol met, double *sols);
1336 LIBMMG2D_EXPORT int MMG2D_Get_ithSol_inSolsAtVertices(MMG5_pSol sol,int i, double* s,MMG5_int pos);
1359
1360
1377
1393
1394/* deallocations */
1426LIBMMG2D_EXPORT int MMG2D_Free_all(const int starter,...);
1427
1462
1496 LIBMMG2D_EXPORT int MMG2D_Free_names(const int starter,...);
1497
1517
1560
1582
1604
1626
1648
1670
1692
1714
1734
1755
1757
1774 LIBMMG2D_EXPORT int MMG2D_saveMesh(MMG5_pMesh ,const char *);
1921
1939
1957
1994
1995
1997
2015
2033
2073
2074/* Tools for the library */
2075
2090
2104 LIBMMG2D_EXPORT int MMG2D_parsar(int argc,char *argv[],MMG5_pMesh mesh,MMG5_pSol met,MMG5_pSol sol);
2105
2123
2138 LIBMMG2D_EXPORT int MMG2D_usage(char *prog);
2139
2156
2173
2187
2211
2235 LIBMMG2D_EXPORT int MMG2D_Get_nonBdyEdge(MMG5_pMesh mesh, MMG5_int* e0, MMG5_int* e1, MMG5_int* ref, MMG5_int idx);
2236
2258 LIBMMG2D_EXPORT int MMG2D_Get_adjaTri(MMG5_pMesh mesh, MMG5_int kel, MMG5_int listri[3]);
2259
2280 LIBMMG2D_EXPORT MMG5_int MMG2D_Get_adjaVertices(MMG5_pMesh mesh, MMG5_int ip, MMG5_int lispoi[MMG2D_LMAX]);
2281
2303 LIBMMG2D_EXPORT MMG5_int MMG2D_Get_adjaVerticesFast(MMG5_pMesh mesh, MMG5_int ip,MMG5_int start,
2304 MMG5_int lispoi[MMG2D_LMAX]);
2326 LIBMMG2D_EXPORT int MMG2D_Get_triFromEdge(MMG5_pMesh mesh, MMG5_int ked, MMG5_int *ktri, int *ied);
2350 LIBMMG2D_EXPORT int MMG2D_Get_trisFromEdge(MMG5_pMesh mesh, MMG5_int ked, MMG5_int ktri[2],int ied[2]);
2351
2374 LIBMMG2D_EXPORT int MMG2D_Compute_eigenv(double m[3],double lambda[2],double vp[2][2]);
2375
2376
2389
2402
2415
2429
2430
2436
2457
2458#ifdef __cplusplus
2459}
2460#endif
2461
2462#endif
const int starter
MMG5_pMesh MMG5_pSol * sol
MMG5_pMesh char * meshin
MMG5_pMesh * mesh
MMG5_pMesh char * filename
LIBMMG2D_EXPORT int MMG2D_Set_vertices(MMG5_pMesh mesh, double *vertices, MMG5_int *refs)
LIBMMG2D_EXPORT int MMG2D_Get_scalarSols(MMG5_pSol met, double *s)
LIBMMG2D_EXPORT void MMG2D_Free_triangles(MMG5_pMesh mesh)
LIBMMG2D_EXPORT int MMG2D_loadGenericMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:592
LIBMMG2D_EXPORT int MMG2D_Set_triangles(MMG5_pMesh mesh, MMG5_int *tria, MMG5_int *refs)
LIBMMG2D_EXPORT void MMG2D_Init_parameters(MMG5_pMesh mesh)
LIBMMG2D_EXPORT int MMG2D_Get_trisFromEdge(MMG5_pMesh mesh, MMG5_int ked, MMG5_int ktri[2], int ied[2])
LIBMMG2D_EXPORT MMG5_int MMG2D_Get_adjaVertices(MMG5_pMesh mesh, MMG5_int ip, MMG5_int lispoi[MMG2D_LMAX])
Return adjacent elements of a triangle.
LIBMMG2D_EXPORT int MMG2D_Get_scalarSol(MMG5_pSol met, double *s)
LIBMMG2D_EXPORT int MMG2D_Get_adjaTri(MMG5_pMesh mesh, MMG5_int kel, MMG5_int listri[3])
Return adjacent elements of a triangle.
LIBMMG2D_EXPORT int MMG2D_Set_solSize(MMG5_pMesh mesh, MMG5_pSol sol, int typEntity, MMG5_int np, int typSol)
LIBMMG2D_EXPORT int MMG2D_Unset_corner(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_saveVect(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename, double lambda)
LIBMMG2D_EXPORT int MMG2D_Get_triangle(MMG5_pMesh mesh, MMG5_int *v0, MMG5_int *v1, MMG5_int *v2, MMG5_int *ref, int *isRequired)
LIBMMG2D_EXPORT int MMG2D_loadSol(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:900
LIBMMG2D_EXPORT int MMG2D_loadMshMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:701
LIBMMG2D_EXPORT int MMG2D_Set_tensorSol(MMG5_pSol met, double m11, double m12, double m22, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Unset_requiredEdge(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Set_solsAtVerticesSize(MMG5_pMesh mesh, MMG5_pSol *sol, int nsols, MMG5_int nentities, int *typSol)
LIBMMG2D_EXPORT int MMG2D_Set_multiMat(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int ref, int split, MMG5_int rin, MMG5_int rex)
LIBMMG2D_EXPORT int MMG2D_Set_ithSols_inSolsAtVertices(MMG5_pSol sol, int i, double *s)
LIBMMG2D_EXPORT int MMG2D_Get_quadrilaterals(MMG5_pMesh mesh, MMG5_int *quadra, MMG5_int *refs, int *areRequired)
LIBMMG2D_EXPORT int MMG2D_saveMshMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:1531
LIBMMG2D_EXPORT int MMG2D_saveVtpMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_parsop(MMG5_pMesh mesh, MMG5_pSol met)
LIBMMG2D_EXPORT int MMG2D_Get_edges(MMG5_pMesh mesh, MMG5_int *edges, MMG5_int *refs, int *areRidges, int *areRequired)
LIBMMG2D_EXPORT int MMG2D_loadVtkMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Set_requiredEdge(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Get_tensorSols(MMG5_pSol met, double *sols)
LIBMMG2D_EXPORT int MMG2D_Get_vectorSols(MMG5_pSol met, double *sols)
LIBMMG2D_EXPORT int MMG2D_Free_structures(const int starter,...)
LIBMMG2D_EXPORT int MMG2D_Set_ithSol_inSolsAtVertices(MMG5_pSol sol, int i, double *s, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Unset_requiredVertex(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Free_names(const int starter,...)
MMG2D_Param
Input parameters for mmg library.
Definition: libmmg2d.h:58
@ MMG2D_DPARAM_hgradreq
Definition: libmmg2d.h:87
@ MMG2D_IPARAM_numsubdomain
Definition: libmmg2d.h:75
@ MMG2D_IPARAM_iso
Definition: libmmg2d.h:63
@ MMG2D_IPARAM_optim
Definition: libmmg2d.h:68
@ MMG2D_IPARAM_numberOfLocalParam
Definition: libmmg2d.h:76
@ MMG2D_IPARAM_nosurf
Definition: libmmg2d.h:72
@ MMG2D_DPARAM_hgrad
Definition: libmmg2d.h:86
@ MMG2D_DPARAM_hmin
Definition: libmmg2d.h:82
@ MMG2D_IPARAM_mem
Definition: libmmg2d.h:60
@ MMG2D_IPARAM_nofem
Definition: libmmg2d.h:90
@ MMG2D_IPARAM_nosizreq
Definition: libmmg2d.h:80
@ MMG2D_IPARAM_isoref
Definition: libmmg2d.h:91
@ MMG2D_DPARAM_rmc
Definition: libmmg2d.h:89
@ MMG2D_DPARAM_hausd
Definition: libmmg2d.h:85
@ MMG2D_IPARAM_angle
Definition: libmmg2d.h:62
@ MMG2D_DPARAM_hmax
Definition: libmmg2d.h:83
@ MMG2D_IPARAM_isosurf
Definition: libmmg2d.h:64
@ MMG2D_DPARAM_ls
Definition: libmmg2d.h:88
@ MMG2D_IPARAM_noinsert
Definition: libmmg2d.h:69
@ MMG2D_IPARAM_nreg
Definition: libmmg2d.h:73
@ MMG2D_IPARAM_noswap
Definition: libmmg2d.h:70
@ MMG2D_IPARAM_xreg
Definition: libmmg2d.h:74
@ MMG2D_IPARAM_nomove
Definition: libmmg2d.h:71
@ MMG2D_IPARAM_lag
Definition: libmmg2d.h:66
@ MMG2D_IPARAM_opnbdy
Definition: libmmg2d.h:65
@ MMG2D_IPARAM_verbose
Definition: libmmg2d.h:59
@ MMG2D_IPARAM_3dMedit
Definition: libmmg2d.h:67
@ MMG2D_IPARAM_anisosize
Definition: libmmg2d.h:79
@ MMG2D_IPARAM_numberOfLSBaseReferences
Definition: libmmg2d.h:77
@ MMG2D_IPARAM_numberOfMat
Definition: libmmg2d.h:78
@ MMG2D_DPARAM_angleDetection
Definition: libmmg2d.h:81
@ MMG2D_DPARAM_hsiz
Definition: libmmg2d.h:84
@ MMG2D_IPARAM_debug
Definition: libmmg2d.h:61
LIBMMG2D_EXPORT int MMG2D_Set_scalarSols(MMG5_pSol met, double *s)
LIBMMG2D_EXPORT int MMG2D_Compute_eigenv(double m[3], double lambda[2], double vp[2][2])
LIBMMG2D_EXPORT int MMG2D_saveVtpMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_saveMshMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
Definition: inout_2d.c:1535
LIBMMG2D_EXPORT int MMG2D_usage(char *prog)
LIBMMG2D_EXPORT int MMG2D_loadVtkMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Set_vectorSol(MMG5_pSol met, double vx, double vy, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_loadVect(MMG5_pMesh, char *)
LIBMMG2D_EXPORT void MMG2D_Free_solutions(MMG5_pMesh mesh, MMG5_pSol sol)
LIBMMG2D_EXPORT int MMG2D_Set_scalarSol(MMG5_pSol met, double s, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Set_requiredTriangle(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Set_parallelEdge(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Get_edge(MMG5_pMesh mesh, MMG5_int *e0, MMG5_int *e1, MMG5_int *ref, int *isRidge, int *isRequired)
LIBMMG2D_EXPORT int MMG2D_Chk_meshData(MMG5_pMesh mesh, MMG5_pSol met)
LIBMMG2D_EXPORT int MMG2D_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
LIBMMG2D_EXPORT int MMG2D_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
LIBMMG2D_EXPORT int MMG2D_Unset_requiredTriangle(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Get_numberOfNonBdyEdges(MMG5_pMesh mesh, MMG5_int *nb_edges)
LIBMMG2D_EXPORT int MMG2D_Get_ithSol_inSolsAtVertices(MMG5_pSol sol, int i, double *s, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Get_meshSize(MMG5_pMesh mesh, MMG5_int *np, MMG5_int *nt, MMG5_int *nquad, MMG5_int *na)
LIBMMG2D_EXPORT int MMG2D_saveVtuMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
LIBMMG2D_EXPORT void MMG2D_Set_commonFunc(void)
Definition: libmmg2d.c:52
LIBMMG2D_EXPORT int MMG2D_Set_requiredVertex(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Get_triangles(MMG5_pMesh mesh, MMG5_int *tria, MMG5_int *refs, int *areRequired)
LIBMMG2D_EXPORT int MMG2D_Set_quadrilateral(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1, MMG5_int v2, MMG5_int v3, MMG5_int ref, MMG5_int pos)
LIBMMG2D_EXPORT double MMG2D_Get_triangleQuality(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Get_vertices(MMG5_pMesh mesh, double *vertices, MMG5_int *refs, int *areCorners, int *areRequired)
LIBMMG2D_EXPORT int MMG2D_defaultValues(MMG5_pMesh mesh)
LIBMMG2D_EXPORT int MMG2D_parsar(int argc, char *argv[], MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol)
LIBMMG2D_EXPORT int MMG2D_saveVtuMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_mmg2dls(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
Definition: libmmg2d.c:526
LIBMMG2D_EXPORT int MMG2D_loadMesh(MMG5_pMesh mesh, const char *filename)
Definition: inout_2d.c:28
LIBMMG2D_EXPORT void MMG2D_Reset_verticestags(MMG5_pMesh mesh)
LIBMMG2D_EXPORT int MMG2D_Get_vertex(MMG5_pMesh mesh, double *c0, double *c1, MMG5_int *ref, int *isCorner, int *isRequired)
LIBMMG2D_EXPORT int MMG2D_Get_quadrilateral(MMG5_pMesh mesh, MMG5_int *v0, MMG5_int *v1, MMG5_int *v2, MMG5_int *v3, MMG5_int *ref, int *isRequired)
LIBMMG2D_EXPORT int MMG2D_Get_nonBdyEdge(MMG5_pMesh mesh, MMG5_int *e0, MMG5_int *e1, MMG5_int *ref, MMG5_int idx)
LIBMMG2D_EXPORT int MMG2D_Free_all(const int starter,...)
LIBMMG2D_EXPORT int MMG2D_Set_edge(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1, MMG5_int ref, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Set_corner(MMG5_pMesh mesh, MMG5_int k)
LIBMMG2D_EXPORT int MMG2D_Set_lsBaseReference(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int br)
LIBMMG2D_EXPORT int(* MMG2D_doSol)(MMG5_pMesh mesh, MMG5_pSol met)
Definition: mmg2dexterns.c:9
LIBMMG2D_EXPORT int MMG2D_mmg2dmesh(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: libmmg2d.c:307
LIBMMG2D_EXPORT int MMG2D_Get_triFromEdge(MMG5_pMesh mesh, MMG5_int ked, MMG5_int *ktri, int *ied)
LIBMMG2D_EXPORT int MMG2D_saveAllSols(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
Definition: inout_2d.c:1673
LIBMMG2D_EXPORT int MMG2D_saveTetgenMesh(MMG5_pMesh, const char *)
Definition: inout_2d.c:2209
LIBMMG2D_EXPORT int MMG2D_Free_allSols(MMG5_pMesh mesh, MMG5_pSol *sol)
LIBMMG2D_EXPORT int MMG2D_Set_tensorSols(MMG5_pSol met, double *sols)
LIBMMG2D_EXPORT int MMG2D_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met)
LIBMMG2D_EXPORT int MMG2D_Get_ithSols_inSolsAtVertices(MMG5_pSol sol, int i, double *s)
LIBMMG2D_EXPORT int MMG2D_saveGenericMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:2230
LIBMMG2D_EXPORT int MMG2D_saveSol(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inout_2d.c:1612
LIBMMG2D_EXPORT int MMG2D_Get_vectorSol(MMG5_pSol met, double *vx, double *vy)
LIBMMG2D_EXPORT int MMG2D_Get_solSize(MMG5_pMesh mesh, MMG5_pSol sol, int *typEntity, MMG5_int *np, int *typSol)
LIBMMG2D_EXPORT int MMG2D_loadAllSols(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
Definition: inout_2d.c:991
#define MMG2D_LMAX
Definition: libmmg2d.h:47
LIBMMG2D_EXPORT int MMG2D_Set_triangle(MMG5_pMesh mesh, MMG5_int v0, MMG5_int v1, MMG5_int v2, MMG5_int ref, MMG5_int pos)
LIBMMG2D_EXPORT int MMG2D_Set_vertex(MMG5_pMesh mesh, double c0, double c1, MMG5_int ref, MMG5_int pos)
LIBMMG2D_EXPORT MMG5_int MMG2D_Get_adjaVerticesFast(MMG5_pMesh mesh, MMG5_int ip, MMG5_int start, MMG5_int lispoi[MMG2D_LMAX])
Return adjacent elements of a triangle.
LIBMMG2D_EXPORT int MMG2D_loadMshMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
Definition: inout_2d.c:767
LIBMMG2D_EXPORT int MMG2D_saveMesh(MMG5_pMesh, const char *)
Definition: inout_2d.c:1096
LIBMMG2D_EXPORT int MMG2D_Set_edges(MMG5_pMesh mesh, MMG5_int *edges, MMG5_int *refs)
LIBMMG2D_EXPORT int MMG2D_saveVtkMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
LIBMMG2D_EXPORT int MMG2D_GetByIdx_vertex(MMG5_pMesh mesh, double *c0, double *c1, MMG5_int *ref, int *isCorner, int *isRequired, MMG5_int idx)
LIBMMG2D_EXPORT int MMG2D_mmg2dlib(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: libmmg2d.c:63
LIBMMG2D_EXPORT int MMG2D_Set_localParameter(MMG5_pMesh mesh, MMG5_pSol sol, int typ, MMG5_int ref, double hmin, double hmax, double hausd)
LIBMMG2D_EXPORT int MMG2D_scaleMesh(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol ls)
LIBMMG2D_EXPORT int MMG2D_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
LIBMMG2D_EXPORT void MMG2D_Init_fileNames(MMG5_pMesh mesh, MMG5_pSol sol)
LIBMMG2D_EXPORT int MMG2D_loadVtuMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Get_solsAtVerticesSize(MMG5_pMesh mesh, MMG5_pSol *sol, int *nsols, MMG5_int *nentities, int *typSol)
LIBMMG2D_EXPORT void MMG2D_Free_edges(MMG5_pMesh mesh)
LIBMMG2D_EXPORT int MMG2D_saveVtkMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Set_dparameter(MMG5_pMesh mesh, MMG5_pSol sol, int dparam, double val)
LIBMMG2D_EXPORT void MMG2D_setfunc(MMG5_pMesh mesh, MMG5_pSol met)
LIBMMG2D_EXPORT int MMG2D_mmg2dmov(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol disp)
Definition: libmmg2d.c:822
LIBMMG2D_EXPORT int MMG2D_Set_vectorSols(MMG5_pSol met, double *sols)
LIBMMG2D_EXPORT int MMG2D_Set_quadrilaterals(MMG5_pMesh mesh, MMG5_int *quadra, MMG5_int *refs)
LIBMMG2D_EXPORT int MMG2D_Get_tensorSol(MMG5_pSol met, double *m11, double *m12, double *m22)
LIBMMG2D_EXPORT int MMG2D_loadVtpMesh(MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
Definition: inoutcpp_2d.cpp:83
LIBMMG2D_EXPORT int MMG2D_Set_iparameter(MMG5_pMesh mesh, MMG5_pSol sol, int iparam, MMG5_int val)
LIBMMG2D_EXPORT int MMG2D_Set_meshSize(MMG5_pMesh mesh, MMG5_int np, MMG5_int nt, MMG5_int nquad, MMG5_int na)
LIBMMG2D_EXPORT int MMG2D_loadVtpMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
LIBMMG2D_EXPORT int MMG2D_Init_mesh(const int starter,...)
LIBMMG2D_EXPORT int MMG2D_loadVtuMesh_and_allData(MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
#define LIBMMG2D_EXPORT
Definition: mmg2d_export.h:31
MMG mesh structure.
Definition: libmmgtypes.h:605