mmgs
libmmgcommon.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 */
23 
35 #ifndef MMGLIBCOMMON_H
36 #define MMGLIBCOMMON_H
37 
38 #include <stdarg.h>
39 
40 #include "libmmgtypes.h"
41 
42 #include "chrono.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 
49 /*----------------------------- functions header -----------------------------*/
50 /* Initialization functions */
76 
77 /* init file names */
111 int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char* meshout);
129 int MMG5_Set_inputSolName(MMG5_pMesh mesh,MMG5_pSol sol, const char* solin);
147 int MMG5_Set_outputSolName(MMG5_pMesh mesh,MMG5_pSol sol, const char* solout);
148 
159 void MMG5_Set_constantSize(MMG5_pMesh mesh,MMG5_pSol met,double hsiz);
160 
173  int MMG5_Set_multiMat(MMG5_pMesh mesh, MMG5_pSol sol,int ref,int split,
174  int rin, int rex);
175 
176 
177 /* deallocations */
179 
193 
206 extern int MMG5_Set_defaultTruncatureSizes(MMG5_pMesh mesh,int8_t sethmin,int8_t sethmax);
207 
219 int MMG5_Compute_constantSize(MMG5_pMesh mesh,MMG5_pSol met,double *hsize);
220 
221 /* Enum utilities */
230 const char* MMG5_Get_entitiesName(enum MMG5_entities ent);
231 
240 const char* MMG5_Get_typeName(enum MMG5_type typ);
241 
251 
260 int MMG5_saveNode(MMG5_pMesh mesh,const char *filename);
261 
270 int MMG5_saveEdge(MMG5_pMesh mesh,const char *filename);
271 
272 #ifdef __cplusplus
273 }
274 #endif
275 
276 #endif
MMG5_pMesh char * meshin
Definition: API_functionsf_s.c:750
MMG5_pMesh * mesh
Definition: API_functionsf_s.c:63
int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
Definition: API_functions.c:231
int MMG5_saveEdge(MMG5_pMesh mesh, const char *filename)
Definition: inout.c:2577
int MMG5_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
Definition: API_functions.c:183
int MMG5_Free_allSols(MMG5_pMesh mesh, MMG5_pSol *sol)
Definition: API_functions.c:438
int MMG5_Set_defaultTruncatureSizes(MMG5_pMesh mesh, int8_t sethmin, int8_t sethmax)
Definition: API_functions.c:526
int MMG5_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
Definition: API_functions.c:147
int MMG5_Set_multiMat(MMG5_pMesh mesh, MMG5_pSol sol, int ref, int split, int rin, int rex)
Definition: API_functions.c:652
int MMG5_saveNode(MMG5_pMesh mesh, const char *filename)
Definition: inout.c:2503
void() MMG5_Init_parameters(MMG5_pMesh mesh)
Definition: API_functions.c:51
void MMG5_mmgFree_names(MMG5_pMesh mesh, MMG5_pSol met)
Definition: API_functions.c:502
int MMG5_Compute_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double *hsize)
Definition: API_functions.c:555
void MMG5_Free_structures(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:460
void MMG5_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double hsiz)
Definition: API_functions.c:393
void MMG5_Init_fileNames(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:126
int MMG5_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
Definition: API_functions.c:346
const char * MMG5_Get_entitiesName(enum MMG5_entities ent)
Definition: API_functions.c:608
const char * MMG5_Get_typeName(enum MMG5_type typ)
Definition: API_functions.c:631
MMG5_type
Type of solutions.
Definition: libmmgtypes.h:200
MMG5_entities
Type of mesh entities.
Definition: libmmgtypes.h:211
MMG mesh structure.
Definition: libmmgtypes.h:552
Definition: libmmgtypes.h:610