Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
libmmg3d_private.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
24#ifndef LIBMMG3D_PRIVATE_H
25#define LIBMMG3D_PRIVATE_H
26
27#ifndef __STDC_FORMAT_MACROS
28#define __STDC_FORMAT_MACROS
29#endif
30
31#include <inttypes.h>
32
34#include "PRoctree_3d_private.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
41#define MMG5_RETURN_AND_FREE(mesh,met,ls,disp,val)do \
42 { \
43 if ( !MMG3D_Free_all(MMG5_ARG_start, \
44 MMG5_ARG_ppMesh,&mesh,MMG5_ARG_ppMet,&met, \
45 MMG5_ARG_ppLs,&ls,MMG5_ARG_ppDisp,&disp, \
46 MMG5_ARG_end) ) { \
47 return MMG5_LOWFAILURE; \
48 } \
49 return val; \
50 }while(0)
51
54#define MMG3D_POINT_REALLOC(mesh,sol,ip,wantedGap,law,o,tag,src ) do \
55 { \
56 MMG5_int klink,oldnpmax; \
57 assert ( mesh && mesh->point ); \
58 \
59 oldnpmax = mesh->npmax; \
60 MMG5_TAB_RECALLOC(mesh,mesh->point,mesh->npmax,wantedGap,MMG5_Point, \
61 "larger point table",law); \
62 \
63 mesh->npnil = mesh->np+1; \
64 for (klink=mesh->npnil; klink<mesh->npmax-1; klink++) \
65 mesh->point[klink].tmp = klink+1; \
66 \
67 /* solution */ \
68 if ( sol ) { \
69 if ( sol->m ) { \
70 MMG5_ADD_MEM(mesh,(sol->size*(mesh->npmax-sol->npmax))*sizeof(double), \
71 "larger solution", \
72 MMG5_SAFE_RECALLOC(mesh->point,mesh->npmax+1,oldnpmax+1,MMG5_Point,,); \
73 mesh->memCur -= (mesh->npmax - oldnpmax)*sizeof(MMG5_Point); \
74 mesh->npmax = oldnpmax; \
75 mesh->np = mesh->npmax-1; \
76 mesh->npnil = 0; \
77 law); \
78 MMG5_SAFE_REALLOC(sol->m,sol->size*(sol->npmax+1), \
79 sol->size*(mesh->npmax+1), \
80 double,"larger solution", \
81 MMG5_SAFE_RECALLOC(mesh->point,mesh->npmax+1,oldnpmax+1,MMG5_Point,,); \
82 mesh->memCur -= (mesh->npmax - oldnpmax)*sizeof(MMG5_Point); \
83 mesh->npmax = oldnpmax; \
84 mesh->np = mesh->npmax-1; \
85 mesh->npnil = 0; \
86 law); \
87 } \
88 sol->npmax = mesh->npmax; \
89 } \
90 \
91 /* We try again to add the point */ \
92 ip = MMG3D_newPt(mesh,o,tag,src); \
93 if ( !ip ) { law; } \
94 }while(0)
95
96
99#define MMG3D_TETRA_REALLOC(mesh,jel,wantedGap,law ) do \
100 { \
101 MMG5_int klink,oldSiz; \
102 \
103 oldSiz = mesh->nemax; \
104 \
105 int max_factor; \
106 if ( mesh->nprism ) { \
107 /* If mesh contains prisms, we need to compute 5*tet_ids to hash faces in
108 * chkBdryTria so we can't create a mesh larger than INT32_MAX/5 */ \
109 max_factor = 5; \
110 } \
111 else { \
112 /* With only tetra, maximal number of tetra is INT32_MAX/4 */ \
113 max_factor = 4; \
114 } \
115 MMG5_CHK_INT32_OVERFLOW(wantedGap,oldSiz,max_factor,max_factor+1,law);\
116 \
117 MMG5_TAB_RECALLOC(mesh,mesh->tetra,mesh->nemax,wantedGap,MMG5_Tetra, \
118 "larger tetra table",law); \
119 \
120 mesh->nenil = mesh->ne+1; \
121 for (klink=mesh->nenil; klink<mesh->nemax-1; klink++) \
122 mesh->tetra[klink].v[3] = klink+1; \
123 \
124 if ( mesh->adja ) { \
125 /* adja table */ \
126 MMG5_ADD_MEM(mesh,4*(mesh->nemax-oldSiz)*sizeof(MMG5_int), \
127 "larger adja table",law); \
128 MMG5_SAFE_RECALLOC(mesh->adja,4*oldSiz+5,4*mesh->nemax+5,MMG5_int \
129 ,"larger adja table",law); \
130 } \
131 \
132 /* We try again to add the point */ \
133 jel = MMG3D_newElt(mesh); \
134 if ( !jel ) {law;} \
135 }while(0)
136
137/* numerical accuracy */
138#define MMG3D_ALPHAD 20.7846096908265 /* 12*sqrt(3) */
139#define MMG3D_LLONG 2.5
140#define MMG3D_LSHRT 0.3
141#define MMG3D_LOPTL 1.3
142#define MMG3D_LOPTS 0.6
144#define MMG3D_SWAP06 0.0288675 /* 0.6/MMG3D_ALPHAD */
145#define MMG3D_SSWAPIMPROVE 1.053
146#define MMG3D_LSWAPIMPROVE 1.1
147#define MMG3D_DET2VOL 0.1666666666666667 /* 1/6 */
149#define MMG3D_BADKAL 0.2
150#define MMG3D_MAXKAL 1.
151
153#define MMG3D_NPMAX 1000000 //200000
154#define MMG3D_NAMAX 200000 //40000
155#define MMG3D_NTMAX 2000000 //400000
156#define MMG3D_NEMAX 6000000 //1200000
158#define MMG3D_SHORTMAX 0x7fff
160#define MMG3D_VOLFRAC 1.e-5
161#define MMG3D_MOVSTEP 0.1
162
164#define MMG_ARGV_APPEND(fromV,toV,fromC,toC,on_failure) do { \
165 MMG5_SAFE_MALLOC(toV[ toC ], strlen( fromV[ fromC ] ) + 1, char, \
166 on_failure); \
167 memcpy( toV[ toC ], fromV[ fromC ], (strlen( fromV[ fromC ] ) + 1)*sizeof(char) ); \
168 ++(toC); \
169 }while(0)
170
172static const uint8_t MMG5_inxt3[7] = { 1,2,3,0,1,2,3 };
174static const uint8_t MMG5_iprv3[7] = { 3,0,1,2,3,0,1 };
176static const uint8_t MMG5_idir[4][3] = { {1,2,3}, {0,3,2}, {0,1,3}, {0,2,1} };
177/* \var idirinv[i][j]: num of the jth point in the ith face */
178static const int8_t MMG5_idirinv[4][4] = {{-1,0,1,2},{0,-1,2,1},{0,1,-1,2},{0,2,1,-1}};
180static const int8_t MMG5_iarf[4][3] = { {5,4,3}, {5,1,2}, {4,2,0}, {3,0,1} };
182static const int8_t MMG5_iarfinv[4][6] = { {-1,-1,-1,2,1,0}, {-1,1,2,-1,-1,0},{2,-1,1,-1,0,-1},{1,2,-1,0,-1,-1}};
184static const uint8_t MMG5_iare[6][2] = { {0,1}, {0,2}, {0,3}, {1,2}, {1,3}, {2,3} };
186static const uint8_t MMG5_ifar[6][2] = { {2,3}, {1,3}, {1,2}, {0,3}, {0,2}, {0,1} };
188static const uint8_t MMG5_isar[6][2] = { {2,3}, {3,1}, {1,2}, {0,3}, {2,0}, {0,1} };
190static const uint8_t MMG5_arpt[4][3] = { {0,1,2}, {0,4,3}, {1,3,5}, {2,5,4} };
191
193static const uint8_t MMG5_idir_pr[5][4] = { {0,1,2,0},{3,5,4,3},{1,4,5,2},{0,2,5,3},{0,3,4,1} };
195static const uint8_t MMG5_iarf_pr[5][5] = { {0,1,3,0}, {6,8,7,6}, {3,5,8,4}, {5,1,2,7},{0,4,6,2} };
196
213static const uint8_t MMG5_permedge[12][6] = {
214 {0,1,2,3,4,5}, {1,2,0,5,3,4}, {2,0,1,4,5,3}, {0,4,3,2,1,5},
215 {3,0,4,1,5,2}, {4,3,0,5,2,1}, {1,3,5,0,2,4}, {3,5,1,4,0,2},
216 {5,1,3,2,4,0}, {2,5,4,1,0,3}, {4,2,5,0,3,1}, {5,4,2,3,1,0} };
217
218/* prototypes */
219int MMG3D_tetraQual(MMG5_pMesh mesh, MMG5_pSol met,int8_t metRidTyp);
220extern int MMG5_directsurfball(MMG5_pMesh mesh, MMG5_int ip, MMG5_int *list, int ilist, double n[3]);
221
222int MMG3D_Init_mesh_var( va_list argptr );
223int MMG3D_Free_all_var( va_list argptr );
224int MMG3D_Free_structures_var( va_list argptr );
225int MMG3D_Free_names_var( va_list argptr );
227MMG5_int MMG3D_newPt(MMG5_pMesh mesh,double c[3],uint16_t tag,MMG5_int src);
229int MMG3D_delElt(MMG5_pMesh mesh,MMG5_int iel);
230void MMG3D_delPt(MMG5_pMesh mesh,MMG5_int ip);
236int MMG5_chkBdryTria_countBoundaries(MMG5_pMesh mesh, MMG5_int *ntmesh, MMG5_int *ntpres);
237int MMG5_chkBdryTria_hashBoundaries(MMG5_pMesh mesh, MMG5_int ntmesh, MMG5_Hash *hashElt);
238int MMG5_chkBdryTria_flagExtraTriangles(MMG5_pMesh mesh, MMG5_int* ntpres, MMG5_Hash* hashElt);
239int MMG5_chkBdryTria_addMissingTriangles(MMG5_pMesh mesh, MMG5_int ntmesh, MMG5_int ntpres);
242extern int MMG5_BezierTgt(double c1[3],double c2[3],double n1[3],double n2[3],double t1[3],double t2[3]);
243extern double MMG5_BezierGeod(double c1[3], double c2[3], double t1[3], double t2[3]);
244int MMG3D_bezierInt(MMG5_pBezier pb,double uv[2],double o[3],double no[3],double to[3]);
245extern int MMG5_BezierReg(MMG5_pMesh mesh,MMG5_int ip0, MMG5_int ip1, double s, double v[3], double *o, double *no);
246extern int MMG5_BezierRef(MMG5_pMesh mesh,MMG5_int ip0, MMG5_int ip1, double s, double *o, double *no, double *to);
247extern int MMG5_BezierEdge(MMG5_pMesh mesh,MMG5_int ip0, MMG5_int ip1, double b0[3], double b1[3],int8_t isrid, double v[3]);
248extern int MMG5_BezierRidge(MMG5_pMesh mesh,MMG5_int ip0, MMG5_int ip1, double s, double *o, double *no1, double *no2, double *to);
249extern int MMG5_BezierNom(MMG5_pMesh mesh,MMG5_int ip0,MMG5_int ip1,double s,double *o,double *no,double *to);
250int MMG5_norface(MMG5_pMesh mesh ,MMG5_int k, int iface, double v[3]);
251int MMG3D_findEdge(MMG5_pMesh,MMG5_pTetra,MMG5_int,MMG5_int,MMG5_int,int,int8_t*,int8_t* );
252int MMG5_boulernm (MMG5_pMesh mesh,MMG5_Hash *hash, MMG5_int start, int ip, MMG5_int *ng, MMG5_int *nr,MMG5_int *nm);
253int MMG5_boulenm(MMG5_pMesh mesh, MMG5_int start, int ip, int iface, double n[3],double t[3]);
254int MMG5_boulenmInt(MMG5_pMesh mesh, MMG5_int start, int ip, double t[3]);
255int MMG5_boulevolp(MMG5_pMesh mesh, MMG5_int start, int ip, int64_t * list);
256int MMG5_boulesurfvolpNom(MMG5_pMesh mesh,MMG5_int start,int ip,int iface,int64_t *listv,
257 int *ilistv,MMG5_int *lists,int*ilists,MMG5_int*refmin,MMG5_int*refplus,int isnm);
258int MMG5_boulesurfvolp(MMG5_pMesh mesh,MMG5_int start,int ip,int iface,int64_t *listv,
259 int *ilistv,MMG5_int *lists,int*ilists, int isnm);
260int MMG5_bouletrid(MMG5_pMesh,MMG5_int,int,int,int *,MMG5_int *,int *,MMG5_int *,MMG5_int *,MMG5_int *);
261int MMG5_startedgsurfball(MMG5_pMesh mesh,MMG5_int nump,MMG5_int numq,MMG5_int *list,int ilist);
262int MMG5_srcbdy(MMG5_pMesh mesh,MMG5_int start,int ia);
263int MMG5_coquil(MMG5_pMesh mesh, MMG5_int start, int ia, int64_t * list,int8_t*);
264int MMG5_coquilface(MMG5_pMesh mesh, MMG5_int start,int8_t iface,int,int64_t*,MMG5_int*,MMG5_int*,int);
265int MMG3D_coquilFaceFirstLoop(MMG5_pMesh mesh,MMG5_int start,MMG5_int na,MMG5_int nb,int8_t iface,
266 int8_t ia,int64_t *list,int *ilist,MMG5_int *it1,MMG5_int *it2,
267 MMG5_int *piv,MMG5_int *adj,int8_t *hasadja,int *nbdy,int silent);
268void MMG3D_coquilFaceSecondLoopInit(MMG5_pMesh mesh,MMG5_int piv,int8_t *iface,int8_t *i,
269 int64_t *list,int *ilist,MMG5_int *it1,MMG5_int *pradj,
270 MMG5_int *adj);
271void MMG5_coquilFaceErrorMessage(MMG5_pMesh mesh, MMG5_int k1, MMG5_int k2);
272int16_t MMG5_coquilTravel(MMG5_pMesh,MMG5_int,MMG5_int,MMG5_int*,MMG5_int*,int8_t*,int8_t*);
273int16_t MMG5_openCoquilTravel(MMG5_pMesh,MMG5_int,MMG5_int,MMG5_int*,MMG5_int*,int8_t*,int8_t*);
274int MMG3D_get_shellEdgeTag(MMG5_pMesh,MMG5_int,int8_t,uint16_t*,MMG5_int *);
275int MMG5_settag(MMG5_pMesh,MMG5_int,int,uint16_t,int);
276int MMG5_deltag(MMG5_pMesh,MMG5_int,int,uint16_t);
278int MMG5_setVertexNmTag(MMG5_pMesh mesh,uint16_t func(uint16_t) );
279int MMG5_chkcol_int(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,int8_t,int64_t*,int,int8_t);
280int MMG5_chkcol_bdy(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,int8_t,int64_t*,int,MMG5_int*,int,MMG5_int,MMG5_int,int8_t,int,int8_t);
281int MMG3D_chkmanicoll(MMG5_pMesh,MMG5_int,int,int,MMG5_int,MMG5_int,MMG5_int,MMG5_int,int8_t,int8_t);
283MMG5_int MMG5_colver(MMG5_pMesh,MMG5_pSol,int64_t *,int,int8_t,int8_t);
294MMG5_int MMG5_hashGetFace(MMG5_Hash*,MMG5_int,MMG5_int,MMG5_int);
297int MMG5_hashPop(MMG5_Hash *hash,MMG5_int a,MMG5_int b);
298int MMG5_hPop(MMG5_HGeom *hash,MMG5_int a,MMG5_int b,MMG5_int *ref,uint16_t *tag);
299int MMG5_hTag(MMG5_HGeom *hash,MMG5_int a,MMG5_int b,MMG5_int ref,uint16_t tag);
300int MMG5_hGet(MMG5_HGeom *hash,MMG5_int a,MMG5_int b,MMG5_int *ref,uint16_t *tag);
301int MMG5_hEdge(MMG5_pMesh mesh,MMG5_HGeom *hash,MMG5_int a,MMG5_int b,MMG5_int ref,uint16_t tag);
302int MMG5_hNew(MMG5_pMesh mesh,MMG5_HGeom *hash,MMG5_int hsiz,MMG5_int hmax);
309int MMG5_cntbdypt(MMG5_pMesh mesh, MMG5_int nump);
310size_t MMG5_memSize(void);
321int MMG3D_ismaniball(MMG5_pMesh mesh,MMG5_pSol sol,MMG5_int k,int indp);
327int MMG5_mmg3dChkmsh(MMG5_pMesh,int,MMG5_int);
328int MMG3D_setMeshSize_initData(MMG5_pMesh,MMG5_int,MMG5_int,MMG5_int,MMG5_int,MMG5_int,MMG5_int);
330void MMG3D_split1_cfg(MMG5_int flag,uint8_t *tau,const uint8_t **taued);
331int MMG3D_split1_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
332int MMG5_split1(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t metRidTyp);
333int MMG5_split1b(MMG5_pMesh,MMG5_pSol,int64_t*,int,MMG5_int,int,int8_t,int8_t);
334MMG5_int MMG5_splitedg(MMG5_pMesh mesh, MMG5_pSol met,MMG5_int iel, int iar, double crit);
335void MMG3D_split2sf_cfg(MMG5_int flag,MMG5_int v[4],uint8_t *tau,const uint8_t **taued,uint8_t *imin);
336int MMG3D_split2sf_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
337int MMG5_split2sf(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
338int MMG5_split2sf_globNum(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],MMG5_int vGlobNum[4],int8_t metRidTyp);
339int MMG3D_split2_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
340int MMG5_split2(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
341int MMG3D_split3_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
342int MMG5_split3(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
343void MMG3D_split3cone_cfg(MMG5_int flag,MMG5_int v[4],uint8_t tau[4],const uint8_t **taued, uint8_t *ia,uint8_t *ib);
344int MMG3D_split3cone_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
345int MMG5_split3cone(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
346int MMG5_split3cone_globNum(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],MMG5_int vGlobNum[4],int8_t metRidTyp);
347int MMG3D_split3op_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
348int MMG5_split3op(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6],int8_t);
349int MMG3D_split4sf_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
350int MMG5_split4sf(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
351void MMG3D_split4op_cfg(MMG5_int flag,MMG5_int v[4],uint8_t tau[4],const uint8_t **taued, uint8_t *imin01,uint8_t *imin23);
352int MMG3D_split4op_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
353int MMG5_split4op(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
354int MMG5_split4op_globNum(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],MMG5_int vGlobNum[4],int8_t metRidTyp);
355int MMG3D_split5_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
356int MMG5_split5(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
357int MMG3D_split6_sim(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6]);
358int MMG5_split6(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t);
359MMG5_int MMG5_split4bar(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,int8_t);
360int MMG3D_simbulgept(MMG5_pMesh mesh,MMG5_pSol met, int64_t *list, int ilist,MMG5_int);
362int MMG5_movintpt_iso(MMG5_pMesh ,MMG5_pSol,MMG3D_pPROctree,int64_t *, int , int);
363int MMG3D_movnormal_iso(MMG5_pMesh ,MMG5_pSol ,MMG5_int ,int );
366int MMG3D_rotate_surfacicBall(MMG5_pMesh,MMG5_int*,int,MMG5_int,double r[3][3],double*);
367int MMG3D_movbdyregpt_geom(MMG5_pMesh,MMG5_int *,const MMG5_int,const MMG5_int,double[3],double[3],double[3],double[3]);
369 int64_t*, int, MMG5_int*, int, int ,int);
371 int64_t*, int, MMG5_int*, int, int ,int);
372int MMG3D_curveEndingPts(MMG5_pMesh,MMG5_int*,int,const uint16_t,MMG5_int,MMG5_int*,MMG5_int*);
374 MMG3D_pPROctree PROctree, int64_t *listv,
375 int ilistv,int improve,MMG5_pPoint p0,
376 MMG5_int ip0,uint8_t isrid,double o[3],
377 double no[3],double no2[3],double to[3]);
378int MMG3D_movbdycurvept_newPosForSimu(MMG5_pMesh,MMG5_pPoint,MMG5_int,MMG5_int,MMG5_int,
379 double,double,uint8_t,const double,
380 double[3],double[3],
381 double[3],double[3],const uint16_t);
383 MMG5_int*, int ,int);
385 MMG5_int*, int ,int);
387 MMG5_int*, int ,int);
390 MMG5_int*, int ,int);
392 MMG5_int*, int ,int);
394 MMG5_int*, int ,int);
395int MMG3D_movv_ani(MMG5_pMesh ,MMG5_pSol ,MMG5_int ,int );
396int MMG3D_movv_iso(MMG5_pMesh ,MMG5_pSol ,MMG5_int ,int );
397int MMG3D_normalAdjaTri(MMG5_pMesh,MMG5_int,int8_t,int,double n[3]);
399 double[3],double[3], double[3] );
400int MMG5_chkswpbdy(MMG5_pMesh, MMG5_pSol,int64_t*, int, MMG5_int, MMG5_int,int8_t);
401int MMG5_swpbdy(MMG5_pMesh,MMG5_pSol,int64_t*,int,MMG5_int,MMG3D_pPROctree,int8_t);
402int MMG5_swpgen(MMG5_pMesh,MMG5_pSol,MMG5_int, int, int64_t*,MMG3D_pPROctree,int8_t);
403MMG5_int MMG5_chkswpgen(MMG5_pMesh,MMG5_pSol,MMG5_int,int,int*,int64_t*,double,int8_t);
404int MMG3D_swap23(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,int,int,MMG5_int,int);
405int MMG5_srcface(MMG5_pMesh mesh,int n0,int n1,int n2);
407double MMG5_orcal_poi(double a[3],double b[3],double c[3],double d[3]);
408int MMG5_countelt(MMG5_pMesh mesh,MMG5_pSol sol, double *weightelt, long *npcible);
409/*function for agressive optimization*/
410 MMG5_int MMG3D_opttyp(MMG5_pMesh , MMG5_pSol ,MMG3D_pPROctree ,MMG5_int);
411int MMG3D_swpItem(MMG5_pMesh , MMG5_pSol ,MMG3D_pPROctree ,MMG5_int ,int );
412int MMG3D_splitItem(MMG5_pMesh , MMG5_pSol ,MMG3D_pPROctree ,MMG5_int ,int ,double );
416int MMG5_trydisp(MMG5_pMesh,double *,short);
421int MMG3D_displayQualHisto(MMG5_int,double,double,double,MMG5_int,MMG5_int,MMG5_int,
422 MMG5_int his[5],MMG5_int,int,int);
423int MMG3D_displayQualHisto_internal(MMG5_int,double,double,double,MMG5_int,MMG5_int,MMG5_int,
424 MMG5_int his[5],MMG5_int,int,int);
425void MMG3D_computeInqua(MMG5_pMesh,MMG5_pSol,MMG5_int*,double*,double*,double*,MMG5_int*,MMG5_int*,
426 MMG5_int*,MMG5_int his[5],int);
428void MMG3D_computeOutqua(MMG5_pMesh,MMG5_pSol,MMG5_int*,double*,double*,double*,MMG5_int*,MMG5_int*,
429 MMG5_int*,MMG5_int his[5],MMG5_int*,int);
431void MMG3D_computeLESqua(MMG5_pMesh,MMG5_pSol,MMG5_int*,double*,double*,double*,MMG5_int*,MMG5_int*,
432 MMG5_int*,MMG5_int his[5],int);
433int MMG3D_computePrilen(MMG5_pMesh,MMG5_pSol,double*,double*,double*,MMG5_int*,MMG5_int*,MMG5_int*,
434 MMG5_int*,MMG5_int*,MMG5_int*,int8_t,double**, MMG5_int [9] );
436int MMG5_intridmet(MMG5_pMesh,MMG5_pSol,MMG5_int,MMG5_int,double,double*,double*);
437int MMG5_intregmet(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,double, double*);
438int MMG5_intvolmet(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,double, double*);
439int MMG3D_localParamReg(MMG5_pMesh,MMG5_int,int64_t*,int,MMG5_int*,int,double*,double*,double*);
440int MMG3D_localParamNm(MMG5_pMesh,MMG5_int,int,int,double*,double*,double*);
441int MMG3D_mark_packedPoints(MMG5_pMesh mesh,MMG5_int *np,MMG5_int *nc);
452int MMG3D_printErrorMat(int8_t symmat,double *m,double *mr);
453int MMG3D_printEigenv(double dm[3],double vp[3][3]);
454
455/* rmc option */
456double MMG3D_vfrac(MMG5_pMesh ,MMG5_pSol ,MMG5_int ,int );
458int MMG5_isbr(MMG5_pMesh ,MMG5_int );
459
460
461/* tools_3d.c */
463
464/* useful functions to debug */
465MMG5_int MMG3D_indElt(MMG5_pMesh mesh,MMG5_int kel);
466MMG5_int MMG3D_indPt(MMG5_pMesh mesh,MMG5_int kp);
467void MMG5_printTetra(MMG5_pMesh mesh,char* fileName);
471int MMG3D_chk_shellEdgeTag(MMG5_pMesh mesh,MMG5_int start, int8_t ia,uint16_t tag,MMG5_int ref);
472
473#ifdef USE_SCOTCH
475#endif
477int MMG5_meancur(MMG5_pMesh mesh,MMG5_int np,double c[3],int ilist,MMG5_int *list,double h[3]);
478double MMG5_surftri(MMG5_pMesh,int,int);
481double MMG5_volint(MMG5_pMesh);
482
483/* Lagrangian mode functions */
485int MMG5_stiffelt(MMG5_pMesh,int,double*,double*);
486int MMG5_mmg3d3(MMG5_pMesh ,MMG5_pSol, MMG5_pSol,MMG5_int** );
488
489/* Delaunay functions*/
490int MMG5_delone(MMG5_pMesh mesh,MMG5_pSol sol,MMG5_int ip,int64_t *list,int ilist);
491int MMG5_cavity_iso(MMG5_pMesh mesh,MMG5_pSol sol,MMG5_int iel,int ip,int64_t *list,int lon,double volmin);
492int MMG5_cavity_ani(MMG5_pMesh mesh,MMG5_pSol sol,MMG5_int iel,int ip,int64_t *list,int lon,double volmin);
493int MMG5_cenrad_iso(MMG5_pMesh mesh,double *ct,double *c,double *rad);
494int MMG5_cenrad_ani(MMG5_pMesh mesh,double *ct,double *m,double *c,double *rad);
495
496/* mmg3d1.c */
497void MMG3D_set_geom(MMG5_pMesh,MMG5_pPoint,uint16_t,MMG5_int,MMG5_int,double[3],double[3],double[3]);
498void MMG5_tet2tri(MMG5_pMesh mesh,MMG5_int k,int8_t ie,MMG5_Tria *ptt);
499int MMG3D_dichoto(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int *vx);
500int MMG3D_dichoto1b(MMG5_pMesh mesh,MMG5_pSol met,int64_t *list,int ret,MMG5_int);
501int8_t MMG5_chkedg(MMG5_pMesh mesh,MMG5_Tria *pt,int8_t ori,double,double,int);
502void MMG3D_find_bdyface_from_edge(MMG5_pMesh,MMG5_pTetra,int8_t,int8_t*,int8_t*,
503 int8_t*,int8_t*,MMG5_int*,MMG5_int*,MMG5_pPoint*,MMG5_pPoint*);
504int8_t MMG3D_build_bezierEdge(MMG5_pMesh,MMG5_int,int8_t,int8_t,int8_t,MMG5_pxTetra,
505 MMG5_int,MMG5_int,MMG5_pPoint,MMG5_pPoint,
506 MMG5_int*,uint16_t*,double[3],double[3],double[3],
507 double[3],int64_t*,int*);
508int MMG3D_adpcoledg(MMG5_pMesh,MMG5_pSol,MMG3D_pPROctree*,MMG5_int,int8_t,double,MMG5_int*);
510 int8_t,int8_t,int* );
511int MMG5_anatet(MMG5_pMesh mesh,MMG5_pSol met, int8_t typchk, int patternMode) ;
513 double clickSurf,double clickVol,int moveVol,int improveSurf,int improveVolSurf,
514 int improveVol,int maxit,MMG5_int testmark);
515MMG5_int MMG5_swpmsh(MMG5_pMesh mesh,MMG5_pSol met,MMG3D_pPROctree PROctree, int);
516MMG5_int MMG5_swptet(MMG5_pMesh mesh,MMG5_pSol met,double,double,MMG3D_pPROctree, int,MMG5_int);
517
518/* libmmg3d_tools.c */
519void MMG5_argv_cleanup( char **mmgArgv, int mmgArgc );
520int MMG3D_storeknownar(int,char*[],MMG5_pMesh,MMG5_pSol,MMG5_pSol,int*, char*[]);
521
522/* pointers */
523/* init structures */
525/* iso/aniso computations */
527extern double MMG5_lenedgCoor_iso(double*, double*, double*, double*);
530int MMG5_intmet_iso(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,MMG5_int, double);
531int MMG5_intmet_iso_edge(MMG5_pSol,MMG5_int,MMG5_int,MMG5_int, double);
532int MMG5_intmet_ani(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,MMG5_int, double);
533int MMG3D_intmet33_ani(MMG5_pMesh,MMG5_pSol,MMG5_int,int8_t,MMG5_int, double);
534int MMG3D_intmet33_ani_edge(MMG5_pSol,MMG5_int,MMG5_int,MMG5_int, double);
535int MMG5_interp4bar_ani(MMG5_pMesh,MMG5_pSol,MMG5_int,MMG5_int,double *);
536int MMG5_interp4bar33_ani(MMG5_pMesh,MMG5_pSol,MMG5_int,MMG5_int,double *);
537int MMG5_interp4bar_iso(MMG5_pMesh,MMG5_pSol,MMG5_int,MMG5_int,double *);
544double MMG5_meansizreg_iso(MMG5_pMesh,MMG5_pSol,MMG5_int,MMG5_int*,int,double,double);
546extern int MMG5_moymet(MMG5_pMesh ,MMG5_pSol ,MMG5_pTetra ,double *);
549
550/* input */
551int MMG3D_openMesh(int imprim,const char *filename,FILE **inm,int *bin,char*,char*);
552int MMG3D_loadMesh_opened(MMG5_pMesh mesh,FILE *inm,int bin);
553
560static inline
562 if ( mesh->xt ) {
563 if ( mesh->xt != mesh->ne ) {
564 fprintf(stderr,"\n ## Warning: %s: %" MMG5_PRId " tetra on %" MMG5_PRId " reoriented.\n",
565 __func__,mesh->xt,mesh->ne);
566 fprintf(stderr," Your mesh may be non-conform.\n");
567 }
568 else {
569 fprintf(stderr,"\n ## Warning: %s: all tetra reoriented.\n",__func__);
570 }
571 }
572 mesh->xt = 0;
573}
574
575#ifdef __cplusplus
576}
577#endif
578
579#endif
MMG5_pMesh MMG5_pSol * sol
MMG5_pMesh * mesh
const int va_list argptr
MMG5_pMesh char * filename
int MMG3D_findEdge(MMG5_pMesh, MMG5_pTetra, MMG5_int, MMG5_int, MMG5_int, int, int8_t *, int8_t *)
Definition: boulep_3d.c:116
int MMG5_paktet(MMG5_pMesh mesh)
Definition: hash_3d.c:50
void MMG3D_split4op_cfg(MMG5_int flag, MMG5_int v[4], uint8_t tau[4], const uint8_t **taued, uint8_t *imin01, uint8_t *imin23)
Definition: split_3d.c:3649
int MMG3D_cuttet_lssurf(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
Definition: mmg3d2s.c:160
int MMG3D_ismaniball(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int k, int indp)
Definition: mmg3d2.c:407
int MMG5_lapantilap(MMG5_pMesh, double *)
int MMG5_intvolmet(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, double, double *)
int MMG5_dichodisp(MMG5_pMesh, double *)
int MMG3D_chk4ridVertices(MMG5_pMesh mesh, MMG5_pTetra pt)
Definition: anisosiz_3d.c:113
int MMG5_chkcol_bdy(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, int8_t, int64_t *, int, MMG5_int *, int, MMG5_int, MMG5_int, int8_t, int, int8_t)
Definition: colver_3d.c:527
int MMG3D_bezierInt(MMG5_pBezier pb, double uv[2], double o[3], double no[3], double to[3])
Definition: bezier_3d.c:608
int MMG5_split4op(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:3804
int MMG5_srcface(MMG5_pMesh mesh, int n0, int n1, int n2)
int MMG5_mmg3dRenumbering(int, MMG5_pMesh, MMG5_pSol, MMG5_pSol, MMG5_int *)
Definition: librnbg_3d.c:114
int MMG5_intridmet(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, double, double *, double *)
int MMG5_mmg3d3(MMG5_pMesh, MMG5_pSol, MMG5_pSol, MMG5_int **)
Definition: mmg3d3.c:602
int MMG5_split3op(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:2654
int MMG3D_chk_shellEdgeTag(MMG5_pMesh mesh, MMG5_int start, int8_t ia, uint16_t tag, MMG5_int ref)
Definition: chkmsh_3d.c:142
double MMG5_lenedgCoor_iso(double *, double *, double *, double *)
Compute edge length from edge's coordinates.
Definition: isosiz_3d.c:61
int MMG5_moymet(MMG5_pMesh, MMG5_pSol, MMG5_pTetra, double *)
Definition: anisosiz_3d.c:144
int MMG5_chkBdryTria_flagExtraTriangles(MMG5_pMesh mesh, MMG5_int *ntpres, MMG5_Hash *hashElt)
Definition: hash_3d.c:1813
int MMG3D_gradsizreq_iso(MMG5_pMesh, MMG5_pSol)
Definition: isosiz_3d.c:1168
int MMG3D_movv_ani(MMG5_pMesh, MMG5_pSol, MMG5_int, int)
Definition: movpt_3d.c:1634
int MMG5_split1b(MMG5_pMesh, MMG5_pSol, int64_t *, int, MMG5_int, int, int8_t, int8_t)
Definition: split_3d.c:629
int MMG5_ppgdisp(MMG5_pMesh, double *)
void MMG3D_set_reqBoundaries(MMG5_pMesh mesh)
Definition: analys_3d.c:46
int MMG3D_movetetrapoints(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, MMG5_int)
Definition: optbdry_3d.c:47
MMG5_int MMG5_swpmsh(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int)
Definition: mmg3d1.c:598
size_t MMG5_memSize(void)
Definition: tools.c:852
int MMG5_intregmet(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, double, double *)
int MMG3D_pack_sol(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: libmmg3d.c:713
int MMG3D_split6_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:4414
MMG5_int MMG3D_newElt(MMG5_pMesh mesh)
Definition: zaldy_3d.c:99
static const int8_t MMG5_idirinv[4][4]
int MMG5_intmet_ani(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, MMG5_int, double)
Definition: intmet_3d.c:57
int MMG3D_gradsizreq_ani(MMG5_pMesh, MMG5_pSol)
Definition: anisosiz_3d.c:2210
int MMG5_hEdge(MMG5_pMesh mesh, MMG5_HGeom *hash, MMG5_int a, MMG5_int b, MMG5_int ref, uint16_t tag)
Definition: hash_3d.c:1040
MMG5_int MMG5_chkswpgen(MMG5_pMesh, MMG5_pSol, MMG5_int, int, int *, int64_t *, double, int8_t)
Definition: swapgen_3d.c:57
MMG5_int MMG5_splitedg(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int iel, int iar, double crit)
Definition: split_3d.c:4916
int MMG3D_splitItem(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, MMG5_int, int, double)
Definition: opttyp_3d.c:394
int MMG5_hGeom(MMG5_pMesh mesh)
Definition: hash_3d.c:1111
int MMG3D_movbdycurvept_chckAndUpdate(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int64_t *listv, int ilistv, int improve, MMG5_pPoint p0, MMG5_int ip0, uint8_t isrid, double o[3], double no[3], double no2[3], double to[3])
Definition: movpt_3d.c:1056
int MMG3D_hashTria(MMG5_pMesh mesh, MMG5_Hash *)
Definition: hash_3d.c:838
int MMG3D_printErrorMat(int8_t symmat, double *m, double *mr)
Definition: anisosiz_3d.c:90
int MMG3D_defsiz_iso(MMG5_pMesh, MMG5_pSol)
Definition: isosiz_3d.c:662
int MMG5_swpbdy(MMG5_pMesh, MMG5_pSol, int64_t *, int, MMG5_int, MMG3D_pPROctree, int8_t)
Definition: swap_3d.c:489
void MMG3D_keep_only1Subdomain(MMG5_pMesh mesh, int nsd)
Definition: tools_3d.c:1393
int MMG5_velextLS(MMG5_pMesh, MMG5_pSol)
Definition: velextls_3d.c:393
int MMG3D_split3_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:1636
int MMG5_split2sf_globNum(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], MMG5_int vGlobNum[4], int8_t metRidTyp)
Definition: split_3d.c:1276
MMG5_int MMG5_swptet(MMG5_pMesh mesh, MMG5_pSol met, double, double, MMG3D_pPROctree, int, MMG5_int)
Definition: mmg3d1.c:672
int MMG3D_set_metricAtPointsOnReqEdges(MMG5_pMesh, MMG5_pSol, int8_t)
Definition: isosiz_3d.c:564
int MMG3D_mark_packedPoints(MMG5_pMesh mesh, MMG5_int *np, MMG5_int *nc)
Definition: libmmg3d.c:541
int MMG3D_update_xtetra(MMG5_pMesh mesh)
Definition: mmg3d2.c:1310
MMG5_int MMG5_movtet(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, double clickSurf, double clickVol, int moveVol, int improveSurf, int improveVolSurf, int improveVol, int maxit, MMG5_int testmark)
Definition: mmg3d1.c:736
int MMG3D_snpval_lssurf(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg3d2s.c:107
int MMG5_cavity_ani(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int iel, int ip, int64_t *list, int lon, double volmin)
Definition: delaunay_3d.c:581
int MMG5_BezierReg(MMG5_pMesh mesh, MMG5_int ip0, MMG5_int ip1, double s, double v[3], double *o, double *no)
Definition: tools_3d.c:696
int MMG5_hPop(MMG5_HGeom *hash, MMG5_int a, MMG5_int b, MMG5_int *ref, uint16_t *tag)
Definition: hash_3d.c:947
int MMG5_boulevolp(MMG5_pMesh mesh, MMG5_int start, int ip, int64_t *list)
Given a vertex and a tetrahedron, find all tetrahedra in the ball of this vertex.
Definition: boulep_3d.c:57
static const uint8_t MMG5_isar[6][2]
isar[i][]: vertices of extremities of the edge opposite to the ith edge
void MMG3D_chkfacetags(MMG5_pMesh mesh)
Definition: chkmsh_3d.c:323
int MMG3D_rmc(MMG5_pMesh, MMG5_pSol)
Definition: mmg3d2.c:778
int MMG5_intmet_iso_edge(MMG5_pSol, MMG5_int, MMG5_int, MMG5_int, double)
Definition: intmet_3d.c:197
int MMG5_hGet(MMG5_HGeom *hash, MMG5_int a, MMG5_int b, MMG5_int *ref, uint16_t *tag)
Definition: hash_3d.c:1007
void MMG3D_Free_topoTables(MMG5_pMesh mesh)
Definition: libmmg3d.c:67
int MMG3D_printEigenv(double dm[3], double vp[3][3])
Definition: anisosiz_3d.c:48
int MMG5_BezierTgt(double c1[3], double c2[3], double n1[3], double n2[3], double t1[3], double t2[3])
Definition: bezier_3d.c:53
void MMG3D_computeOutqua(MMG5_pMesh, MMG5_pSol, MMG5_int *, double *, double *, double *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int his[5], MMG5_int *, int)
Definition: quality_3d.c:696
MMG5_int MMG5_split4bar(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, int8_t)
Definition: split_3d.c:3050
int MMG5_boulesurfvolp(MMG5_pMesh mesh, MMG5_int start, int ip, int iface, int64_t *listv, int *ilistv, MMG5_int *lists, int *ilists, int isnm)
Definition: boulep_3d.c:610
int MMG5_split5(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:4203
int MMG5_movbdyregpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int, int)
Definition: movpt_3d.c:626
int MMG5_cavity_iso(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int iel, int ip, int64_t *list, int lon, double volmin)
Definition: delaunay_3d.c:741
int MMG5_hNew(MMG5_pMesh mesh, MMG5_HGeom *hash, MMG5_int hsiz, MMG5_int hmax)
Definition: hash_3d.c:1083
int MMG5_interp4bar_iso(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, double *)
int MMG3D_split3cone_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:1921
int MMG3D_rotate_surfacicBall(MMG5_pMesh, MMG5_int *, int, MMG5_int, double r[3][3], double *)
Definition: movpt_3d.c:350
void MMG3D_find_bdyface_from_edge(MMG5_pMesh, MMG5_pTetra, int8_t, int8_t *, int8_t *, int8_t *, int8_t *, MMG5_int *, MMG5_int *, MMG5_pPoint *, MMG5_pPoint *)
Definition: mmg3d1.c:1898
void MMG5_argv_cleanup(char **mmgArgv, int mmgArgc)
int MMG3D_movv_iso(MMG5_pMesh, MMG5_pSol, MMG5_int, int)
Definition: movpt_3d.c:1883
int MMG3D_normalAdjaTri(MMG5_pMesh, MMG5_int, int8_t, int, double n[3])
Definition: split_3d.c:472
int MMG3D_movnormal_iso(MMG5_pMesh, MMG5_pSol, MMG5_int, int)
Definition: movpt_3d.c:1754
int MMG5_anatet(MMG5_pMesh mesh, MMG5_pSol met, int8_t typchk, int patternMode)
Definition: mmg3d1.c:3159
int MMG3D_analys(MMG5_pMesh mesh)
Definition: analys_3d.c:1324
int MMG3D_hashPrism(MMG5_pMesh mesh)
Definition: hash_3d.c:240
void MMG5_freeXPrisms(MMG5_pMesh mesh)
Definition: zaldy_3d.c:378
int MMG5_hTag(MMG5_HGeom *hash, MMG5_int a, MMG5_int b, MMG5_int ref, uint16_t tag)
Definition: hash_3d.c:914
void MMG3D_split3cone_cfg(MMG5_int flag, MMG5_int v[4], uint8_t tau[4], const uint8_t **taued, uint8_t *ia, uint8_t *ib)
Definition: split_3d.c:1863
int MMG3D_pack_tetra(MMG5_pMesh mesh)
Definition: libmmg3d.c:627
int MMG3D_localParamReg(MMG5_pMesh, MMG5_int, int64_t *, int, MMG5_int *, int, double *, double *, double *)
Definition: tools_3d.c:1025
int MMG3D_simbulgept(MMG5_pMesh mesh, MMG5_pSol met, int64_t *list, int ilist, MMG5_int)
Definition: split_3d.c:330
int MMG3D_Free_all_var(va_list argptr)
Definition: variadic_3d.c:261
int MMG3D_optbdry(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, MMG5_int)
Definition: optbdry_3d.c:259
void MMG3D_delPt(MMG5_pMesh mesh, MMG5_int ip)
Definition: zaldy_3d.c:80
int MMG3D_setref_ls(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg3d2.c:1257
void MMG5_freeXTets(MMG5_pMesh mesh)
Definition: zaldy_3d.c:359
int MMG5_startedgsurfball(MMG5_pMesh mesh, MMG5_int nump, MMG5_int numq, MMG5_int *list, int ilist)
Definition: tools_3d.c:91
int MMG3D_Free_structures_var(va_list argptr)
Definition: variadic_3d.c:449
int MMG5_split1(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t metRidTyp)
Definition: split_3d.c:134
int MMG3D_movbdycurvept_newPosForSimu(MMG5_pMesh, MMG5_pPoint, MMG5_int, MMG5_int, MMG5_int, double, double, uint8_t, const double, double[3], double[3], double[3], double[3], const uint16_t)
Definition: movpt_3d.c:1150
static const uint8_t MMG5_permedge[12][6]
int MMG3D_coquilFaceFirstLoop(MMG5_pMesh mesh, MMG5_int start, MMG5_int na, MMG5_int nb, int8_t iface, int8_t ia, int64_t *list, int *ilist, MMG5_int *it1, MMG5_int *it2, MMG5_int *piv, MMG5_int *adj, int8_t *hasadja, int *nbdy, int silent)
Definition: boulep_3d.c:1689
MMG5_int MMG3D_indPt(MMG5_pMesh mesh, MMG5_int kp)
Definition: tools_3d.c:918
int MMG3D_chkmani(MMG5_pMesh mesh)
Definition: mmg3d2.c:1528
int MMG5_interp4bar_ani(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, double *)
void MMG5_Init_parameters(MMG5_pMesh mesh)
Definition: API_functions.c:51
int MMG5_bdyMCF(MMG5_pMesh)
int MMG3D_gradsiz_ani(MMG5_pMesh, MMG5_pSol)
Definition: anisosiz_3d.c:2073
int MMG3D_memOption_memRepartition(MMG5_pMesh mesh)
Definition: zaldy_3d.c:173
int MMG3D_get_shellEdgeTag(MMG5_pMesh, MMG5_int, int8_t, uint16_t *, MMG5_int *)
Definition: colver_3d.c:439
int MMG3D_gradsiz_iso(MMG5_pMesh, MMG5_pSol)
Definition: isosiz_3d.c:1083
int MMG5_setdhd(MMG5_pMesh mesh)
Definition: analys_3d.c:310
int MMG5_norver(MMG5_pMesh mesh)
Definition: analys_3d.c:638
int MMG3D_normalAndTangent_at_sinRidge(MMG5_pMesh, MMG5_int, int, int, double[3], double[3], double[3])
Definition: mmg3d1.c:1684
MMG5_int MMG3D_newPt(MMG5_pMesh mesh, double c[3], uint16_t tag, MMG5_int src)
Definition: zaldy_3d.c:39
void MMG3D_computeLESqua(MMG5_pMesh, MMG5_pSol, MMG5_int *, double *, double *, double *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int his[5], int)
Definition: quality_3d.c:392
void MMG5_coquilFaceErrorMessage(MMG5_pMesh mesh, MMG5_int k1, MMG5_int k2)
Definition: boulep_3d.c:1616
int16_t MMG5_openCoquilTravel(MMG5_pMesh, MMG5_int, MMG5_int, MMG5_int *, MMG5_int *, int8_t *, int8_t *)
Definition: boulep_3d.c:2014
int MMG5_split4sf(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:3440
int MMG5_isbr(MMG5_pMesh, MMG5_int)
Definition: tools_3d.c:42
double MMG5_volint(MMG5_pMesh)
static const int8_t MMG5_iarfinv[4][6]
num of the j^th edge in the i^th face
int MMG3D_mmg3d2(MMG5_pMesh, MMG5_pSol, MMG5_pSol)
Definition: mmg3d2.c:2219
void MMG3D_mark_pointsOnReqEdge_fromTetra(MMG5_pMesh mesh)
Definition: isosiz_3d.c:1048
int MMG3D_chkmanicoll(MMG5_pMesh, MMG5_int, int, int, MMG5_int, MMG5_int, MMG5_int, MMG5_int, int8_t, int8_t)
Definition: mmg3d2.c:1683
double MMG5_timestepMCF(MMG5_pMesh, double)
static const uint8_t MMG5_arpt[4][3]
arpt[i]: edges passing through vertex i
int MMG5_chkswpbdy(MMG5_pMesh, MMG5_pSol, int64_t *, int, MMG5_int, MMG5_int, int8_t)
Definition: swap_3d.c:57
void MMG3D_Free_arrays(MMG5_pMesh *, MMG5_pSol *, MMG5_pSol *, MMG5_pSol *, MMG5_pSol *)
Definition: variadic_3d.c:359
int MMG3D_optlap(MMG5_pMesh, MMG5_pSol)
Definition: optlap_3d.c:46
int MMG5_boulenm(MMG5_pMesh mesh, MMG5_int start, int ip, int iface, double n[3], double t[3])
Definition: boulep_3d.c:199
int MMG5_chkBdryTria_addMissingTriangles(MMG5_pMesh mesh, MMG5_int ntmesh, MMG5_int ntpres)
Definition: hash_3d.c:1910
int MMG5_chkfemtopo(MMG5_pMesh mesh)
Definition: chkmsh_3d.c:824
int MMG3D_localParamNm(MMG5_pMesh, MMG5_int, int, int, double *, double *, double *)
Definition: tools_3d.c:1145
int MMG3D_computePrilen(MMG5_pMesh, MMG5_pSol, double *, double *, double *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int *, int8_t, double **, MMG5_int[9])
Definition: quality_3d.c:221
MMG5_int MMG5_hashGetFace(MMG5_Hash *, MMG5_int, MMG5_int, MMG5_int)
Definition: hash_3d.c:84
int MMG5_chkBdryTria(MMG5_pMesh mesh)
Definition: hash_3d.c:1559
int MMG3D_swap23(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, int, int, MMG5_int, int)
Definition: swap_3d.c:625
int MMG3D_delElt(MMG5_pMesh mesh, MMG5_int iel)
Definition: zaldy_3d.c:122
int MMG5_movintpt_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, int)
Definition: anisomovpt_3d.c:58
int MMG3D_dichoto(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int *vx)
Definition: mmg3d1.c:140
int MMG5_boulesurfvolpNom(MMG5_pMesh mesh, MMG5_int start, int ip, int iface, int64_t *listv, int *ilistv, MMG5_int *lists, int *ilists, MMG5_int *refmin, MMG5_int *refplus, int isnm)
Definition: boulep_3d.c:780
int MMG5_settag(MMG5_pMesh, MMG5_int, int, uint16_t, int)
Definition: boulep_3d.c:1234
int MMG5_split6(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:4483
int MMG3D_packMesh(MMG5_pMesh, MMG5_pSol, MMG5_pSol)
Definition: libmmg3d.c:905
int MMG3D_defsiz_ani(MMG5_pMesh, MMG5_pSol)
Definition: anisosiz_3d.c:1310
int MMG3D_split2sf_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:1103
int MMG5_bdryIso(MMG5_pMesh)
int MMG3D_splsurfedge(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_pTetra, MMG5_pxTetra, int8_t, int8_t, int8_t, int *)
Definition: mmg3d1.c:1957
int MMG5_trydisp(MMG5_pMesh, double *, short)
int MMG5_BezierRidge(MMG5_pMesh mesh, MMG5_int ip0, MMG5_int ip1, double s, double *o, double *no1, double *no2, double *to)
Definition: tools_3d.c:145
int MMG3D_split4op_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:3685
int MMG5_countelt(MMG5_pMesh mesh, MMG5_pSol sol, double *weightelt, long *npcible)
Definition: quality_3d.c:824
int MMG5_chkcol_int(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, int8_t, int64_t *, int, int8_t)
Definition: colver_3d.c:43
int MMG5_srcbdy(MMG5_pMesh mesh, MMG5_int start, int ia)
Definition: boulep_3d.c:1557
int MMG3D_tetraQual(MMG5_pMesh mesh, MMG5_pSol met, int8_t metRidTyp)
Definition: quality_3d.c:50
int MMG3D_memOption_memSet(MMG5_pMesh mesh)
Definition: zaldy_3d.c:158
int MMG5_movbdyridpt_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
int MMG5_split4op_globNum(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], MMG5_int vGlobNum[4], int8_t metRidTyp)
Definition: split_3d.c:3826
int MMG5_chkptonbdy(MMG5_pMesh, MMG5_int)
Definition: chkmsh_3d.c:713
int MMG5_chkBdryTria_hashBoundaries(MMG5_pMesh mesh, MMG5_int ntmesh, MMG5_Hash *hashElt)
Definition: hash_3d.c:1729
double MMG5_surftri(MMG5_pMesh, int, int)
int MMG3D_update_eltsVertices(MMG5_pMesh mesh)
Definition: libmmg3d.c:807
int MMG5_cenrad_iso(MMG5_pMesh mesh, double *ct, double *c, double *rad)
Definition: cenrad_3d.c:45
int MMG5_movbdyrefpt_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
MMG5_int MMG3D_pack_points(MMG5_pMesh mesh)
Definition: libmmg3d.c:853
void MMG3D_chkmeshedgestags(MMG5_pMesh mesh)
Definition: chkmsh_3d.c:200
int8_t MMG5_chkedg(MMG5_pMesh mesh, MMG5_Tria *pt, int8_t ori, double, double, int)
Definition: mmg3d1.c:363
static const int8_t MMG5_iarf[4][3]
iarf[i]: edges of face opposite to vertex i
double MMG5_caltet33_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: quality_3d.c:109
int MMG3D_Free_names_var(va_list argptr)
Definition: variadic_3d.c:547
int MMG3D_openMesh(int imprim, const char *filename, FILE **inm, int *bin, char *, char *)
Definition: inout_3d.c:53
int MMG5_swpgen(MMG5_pMesh, MMG5_pSol, MMG5_int, int, int64_t *, MMG3D_pPROctree, int8_t)
Definition: swapgen_3d.c:271
static const uint8_t MMG5_iare[6][2]
vertices of extremities of the edges of the tetra
int MMG5_boulernm(MMG5_pMesh mesh, MMG5_Hash *hash, MMG5_int start, int ip, MMG5_int *ng, MMG5_int *nr, MMG5_int *nm)
Definition: boulep_3d.c:458
int MMG5_movbdyrefpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
Definition: movpt_3d.c:1446
int MMG5_coquilface(MMG5_pMesh mesh, MMG5_int start, int8_t iface, int, int64_t *, MMG5_int *, MMG5_int *, int)
Definition: boulep_3d.c:1846
int MMG3D_displayQualHisto_internal(MMG5_int, double, double, double, MMG5_int, MMG5_int, MMG5_int, MMG5_int his[5], MMG5_int, int, int)
Definition: quality_3d.c:510
int MMG3D_split1_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:94
int MMG3D_cuttet_ls(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
Definition: mmg3d2.c:1026
int MMG3D_setMeshSize_initData(MMG5_pMesh, MMG5_int, MMG5_int, MMG5_int, MMG5_int, MMG5_int, MMG5_int)
int MMG5_deltag(MMG5_pMesh, MMG5_int, int, uint16_t)
Definition: boulep_3d.c:1347
int MMG5_mmg3d1_pattern(MMG5_pMesh, MMG5_pSol, MMG5_int *)
int MMG3D_setref_lssurf(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg3d2s.c:419
int MMG5_denoisbdy(MMG5_pMesh)
int MMG3D_regver(MMG5_pMesh mesh)
Definition: analys_3d.c:956
void MMG3D_set_geom(MMG5_pMesh, MMG5_pPoint, uint16_t, MMG5_int, MMG5_int, double[3], double[3], double[3])
Definition: mmg3d1.c:59
int MMG5_split2(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:1489
int MMG3D_storeknownar(int, char *[], MMG5_pMesh, MMG5_pSol, MMG5_pSol, int *, char *[])
int MMG3D_outqua(MMG5_pMesh mesh, MMG5_pSol met)
Definition: quality_3d.c:780
double MMG5_BezierGeod(double c1[3], double c2[3], double t1[3], double t2[3])
Definition: bezier_3d.c:111
int MMG5_cntbdypt(MMG5_pMesh mesh, MMG5_int nump)
Definition: chkmsh_3d.c:775
void MMG5_printTetra(MMG5_pMesh mesh, char *fileName)
Definition: tools_3d.c:975
static const uint8_t MMG5_ifar[6][2]
ifar[i][]: faces sharing the ith edge of the tetra
int MMG5_mmg3dChkmsh(MMG5_pMesh, int, MMG5_int)
Definition: chkmsh_3d.c:508
int MMG5_setadj(MMG5_pMesh mesh)
Definition: analys_3d.c:108
int MMG5_movbdynompt_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
void MMG3D_coquilFaceSecondLoopInit(MMG5_pMesh mesh, MMG5_int piv, int8_t *iface, int8_t *i, int64_t *list, int *ilist, MMG5_int *it1, MMG5_int *pradj, MMG5_int *adj)
Definition: boulep_3d.c:1790
int MMG3D_dichoto1b(MMG5_pMesh mesh, MMG5_pSol met, int64_t *list, int ret, MMG5_int)
Definition: mmg3d1.c:293
static const uint8_t MMG5_iprv3[7]
previous vertex of tetra: {3,0,1,2,3,0,1}
int MMG5_bdryUpdate(MMG5_pMesh)
Definition: hash_3d.c:2294
MMG5_int MMG3D_bdryBuild(MMG5_pMesh)
Definition: libmmg3d.c:99
int MMG5_BezierRef(MMG5_pMesh mesh, MMG5_int ip0, MMG5_int ip1, double s, double *o, double *no, double *to)
Definition: tools_3d.c:352
static const uint8_t MMG5_iarf_pr[5][5]
iarf[i]: edges of face i for a prism
void MMG3D_split1_cfg(MMG5_int flag, uint8_t *tau, const uint8_t **taued)
Definition: split_3d.c:53
int MMG3D_zaldy(MMG5_pMesh mesh)
Definition: zaldy_3d.c:346
int MMG3D_split4sf_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:3337
int MMG5_setNmTag(MMG5_pMesh mesh, MMG5_Hash *hash)
Definition: hash_3d.c:816
int MMG5_split2sf(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:1254
int MMG5_chkVertexConnectedDomains(MMG5_pMesh mesh)
Definition: analys_3d.c:471
int MMG5_movbdyregpt_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int, int)
int MMG5_split3cone(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:2059
void MMG5_tet2tri(MMG5_pMesh mesh, MMG5_int k, int8_t ie, MMG5_Tria *ptt)
Definition: mmg3d1.c:102
int MMG5_movintpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, int)
Definition: movpt_3d.c:58
static const uint8_t MMG5_idir_pr[5][4]
idir[i]: vertices of face i for a prism
int MMG3D_adpcoledg(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree *, MMG5_int, int8_t, double, MMG5_int *)
Definition: mmg3d1.c:1210
int16_t MMG5_coquilTravel(MMG5_pMesh, MMG5_int, MMG5_int, MMG5_int *, MMG5_int *, int8_t *, int8_t *)
Definition: boulep_3d.c:1962
int MMG5_meancur(MMG5_pMesh mesh, MMG5_int np, double c[3], int ilist, MMG5_int *list, double h[3])
int MMG5_delone(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int ip, int64_t *list, int ilist)
Definition: delaunay_3d.c:140
int MMG5_movbdynomintpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, int)
Definition: movpt_3d.c:1490
int MMG5_interp4bar33_ani(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, double *)
void MMG3D_split2sf_cfg(MMG5_int flag, MMG5_int v[4], uint8_t *tau, const uint8_t **taued, uint8_t *imin)
Definition: split_3d.c:1037
int MMG3D_snpval_ls(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg3d2.c:668
int MMG3D_split5_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:4111
int MMG5_bdryPerm(MMG5_pMesh)
Definition: hash_3d.c:2385
int MMG3D_Init_mesh_var(va_list argptr)
Definition: variadic_3d.c:177
int MMG5_mmg3d1_delone(MMG5_pMesh, MMG5_pSol, MMG5_int *)
int MMG3D_doSol_ani(MMG5_pMesh, MMG5_pSol)
double MMG5_orcal_poi(double a[3], double b[3], double c[3], double d[3])
static const uint8_t MMG5_inxt3[7]
next vertex of tetra: {1,2,3,0,1,2,3}
int MMG5_movbdyridpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
Definition: movpt_3d.c:1614
int MMG5_setVertexNmTag(MMG5_pMesh mesh, uint16_t func(uint16_t))
Definition: hash_3d.c:637
double MMG5_estavglen(MMG5_pMesh)
Definition: mmg3d3.c:46
int MMG3D_intmet33_ani_edge(MMG5_pSol, MMG5_int, MMG5_int, MMG5_int, double)
Definition: intmet_3d.c:150
int MMG5_norface(MMG5_pMesh mesh, MMG5_int k, int iface, double v[3])
Definition: tools_3d.c:52
int MMG3D_curveEndingPts(MMG5_pMesh, MMG5_int *, int, const uint16_t, MMG5_int, MMG5_int *, MMG5_int *)
Definition: movpt_3d.c:944
int MMG3D_movbdyregpt_geom(MMG5_pMesh, MMG5_int *, const MMG5_int, const MMG5_int, double[3], double[3], double[3], double[3])
Definition: movpt_3d.c:483
int MMG3D_resetRef_lssurf(MMG5_pMesh mesh)
Definition: mmg3d2s.c:51
double MMG3D_vfrac(MMG5_pMesh, MMG5_pSol, MMG5_int, int)
Definition: mmg3d2.c:107
int MMG3D_loadMesh_opened(MMG5_pMesh mesh, FILE *inm, int bin)
Definition: inout_3d.c:113
int MMG3D_pack_tetraAndAdja(MMG5_pMesh mesh)
Definition: libmmg3d.c:572
int MMG5_split3(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], int8_t)
Definition: split_3d.c:1707
int MMG5_hashPop(MMG5_Hash *hash, MMG5_int a, MMG5_int b)
Definition: hash_3d.c:850
int MMG3D_resetRef_ls(MMG5_pMesh mesh)
Definition: mmg3d2.c:313
int MMG5_singul(MMG5_pMesh mesh)
Definition: analys_3d.c:544
int MMG3D_nmgeom(MMG5_pMesh mesh)
Definition: analys_3d.c:1198
int MMG3D_intmet33_ani(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, MMG5_int, double)
Definition: intmet_3d.c:126
int MMG3D_inqua(MMG5_pMesh mesh, MMG5_pSol met)
Definition: quality_3d.c:647
int MMG3D_doSol_iso(MMG5_pMesh, MMG5_pSol)
int MMG5_mmg3dBezierCP(MMG5_pMesh mesh, MMG5_Tria *pt, MMG5_pBezier pb, int8_t ori)
Definition: bezier_3d.c:326
int MMG5_stiffelt(MMG5_pMesh, int, double *, double *)
int MMG5_directsurfball(MMG5_pMesh mesh, MMG5_int ip, MMG5_int *list, int ilist, double n[3])
Definition: tools_3d.c:66
int MMG5_cenrad_ani(MMG5_pMesh mesh, double *ct, double *m, double *c, double *rad)
Definition: cenrad_3d.c:142
int MMG5_chkBdryTria_deleteExtraTriangles(MMG5_pMesh mesh, MMG5_int *permtria)
Definition: hash_3d.c:1870
MMG5_int MMG3D_opttyp(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, MMG5_int)
Definition: opttyp_3d.c:472
int MMG5_boulenmInt(MMG5_pMesh mesh, MMG5_int start, int ip, double t[3])
Definition: boulep_3d.c:345
int MMG5_BezierNom(MMG5_pMesh mesh, MMG5_int ip0, MMG5_int ip1, double s, double *o, double *no, double *to)
Definition: tools_3d.c:527
int MMG5_BezierEdge(MMG5_pMesh mesh, MMG5_int ip0, MMG5_int ip1, double b0[3], double b1[3], int8_t isrid, double v[3])
Definition: bezier_3d.c:152
int8_t MMG3D_build_bezierEdge(MMG5_pMesh, MMG5_int, int8_t, int8_t, int8_t, MMG5_pxTetra, MMG5_int, MMG5_int, MMG5_pPoint, MMG5_pPoint, MMG5_int *, uint16_t *, double[3], double[3], double[3], double[3], int64_t *, int *)
Definition: mmg3d1.c:1780
int MMG3D_memOption(MMG5_pMesh mesh)
Definition: zaldy_3d.c:271
int MMG3D_setMeshSize_alloc(MMG5_pMesh)
Definition: zaldy_3d.c:288
int MMG3D_prilen(MMG5_pMesh mesh, MMG5_pSol met, int8_t)
Definition: quality_3d.c:357
int MMG3D_split3op_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:2522
double MMG5_meansizreg_iso(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int *, int, double, double)
Definition: isosiz_3d.c:482
int MMG5_bouletrid(MMG5_pMesh, MMG5_int, int, int, int *, MMG5_int *, int *, MMG5_int *, MMG5_int *, MMG5_int *)
Definition: boulep_3d.c:960
static const uint8_t MMG5_idir[4][3]
idir[i]: vertices of face opposite to vertex i
int MMG3D_pack_prismsAndQuads(MMG5_pMesh mesh)
Definition: libmmg3d.c:667
int MMG5_coquil(MMG5_pMesh mesh, MMG5_int start, int ia, int64_t *list, int8_t *)
Definition: boulep_3d.c:1406
int MMG5_movbdynompt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int64_t *, int, MMG5_int *, int, int)
Definition: movpt_3d.c:1470
int MMG3D_pack_pointArray(MMG5_pMesh mesh)
Definition: libmmg3d.c:749
static void MMG5_warnOrientation(MMG5_pMesh mesh)
MMG5_int MMG5_colver(MMG5_pMesh, MMG5_pSol, int64_t *, int, int8_t, int8_t)
Definition: colver_3d.c:1154
int MMG3D_swpItem(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, MMG5_int, int)
Definition: opttyp_3d.c:328
MMG5_int MMG3D_indElt(MMG5_pMesh mesh, MMG5_int kel)
Definition: tools_3d.c:862
void MMG3D_computeInqua(MMG5_pMesh, MMG5_pSol, MMG5_int *, double *, double *, double *, MMG5_int *, MMG5_int *, MMG5_int *, MMG5_int his[5], int)
Definition: quality_3d.c:575
int MMG5_intmet_iso(MMG5_pMesh, MMG5_pSol, MMG5_int, int8_t, MMG5_int, double)
Definition: intmet_3d.c:174
int MMG3D_split2_sim(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6])
Definition: split_3d.c:1427
int MMG5_bdrySet(MMG5_pMesh)
Definition: hash_3d.c:1958
int MMG3D_displayQualHisto(MMG5_int, double, double, double, MMG5_int, MMG5_int, MMG5_int, MMG5_int his[5], MMG5_int, int, int)
Definition: quality_3d.c:476
void MMG3D_chkpointtag(MMG5_pMesh mesh)
Definition: chkmsh_3d.c:383
int MMG5_movintptLES_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree, MMG5_int *, int, int)
Definition: movpt_3d.c:185
void MMG3D_unset_reqBoundaries(MMG5_pMesh mesh)
Definition: libmmg3d.c:875
int MMG5_chkBdryTria_countBoundaries(MMG5_pMesh mesh, MMG5_int *ntmesh, MMG5_int *ntpres)
Definition: hash_3d.c:1595
int MMG5_split3cone_globNum(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, MMG5_int vx[6], MMG5_int vGlobNum[4], int8_t metRidTyp)
Definition: split_3d.c:2081
Hash table to store geometric edges.
Definition: libmmgtypes.h:582
Identic as MMG5_HGeom but use MMG5_hedge to store edges instead of MMG5_hgeom (memory economy).
Definition: libmmgtypes.h:603
MMG mesh structure.
Definition: libmmgtypes.h:613
MMG5_int xt
Definition: libmmgtypes.h:628
MMG5_int ne
Definition: libmmgtypes.h:620
Structure to store vertices of an MMG mesh.
Definition: libmmgtypes.h:276
Structure to store tetrahedra of an MMG mesh.
Definition: libmmgtypes.h:407
Structure to store triangles of a MMG mesh.
Definition: libmmgtypes.h:338
Structure to store additional information for the surface tetrahedra of an MMG mesh.
Definition: libmmgtypes.h:425