mmg2d
locate_2d.c File Reference
#include "mmg2d.h"
Include dependency graph for locate_2d.c:

Macros

#define EPST   -1e-18
 
#define EPSR   1e+18
 
#define EPSNULL   1e-12
 
#define EPSNULL2   5e-13
 

Functions

int MMG2_coorbary (MMG5_pMesh mesh, MMG5_pTria pt, double c[2], double *det, double *l1, double *l2)
 
int MMG2_isInTriangle (MMG5_pMesh mesh, int k, double c[2])
 
int MMG2_cutEdge (MMG5_pMesh mesh, MMG5_pTria pt, MMG5_pPoint ppa, MMG5_pPoint ppb)
 
int MMG2_cutEdgeTriangle (MMG5_pMesh mesh, int k, int ia, int ib)
 
int MMG2_findTria (MMG5_pMesh mesh, int ip)
 
int MMG2_locateEdge (MMG5_pMesh mesh, int ia, int ib, int *kdep, int *list)
 

Detailed Description

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

Macro Definition Documentation

◆ EPSNULL

#define EPSNULL   1e-12

◆ EPSNULL2

#define EPSNULL2   5e-13

◆ EPSR

#define EPSR   1e+18

◆ EPST

#define EPST   -1e-18

Function Documentation

◆ MMG2_coorbary()

int MMG2_coorbary ( MMG5_pMesh  mesh,
MMG5_pTria  pt,
double  c[2],
double *  det,
double *  l1,
double *  l2 
)
Here is the caller graph for this function:

◆ MMG2_cutEdge()

int MMG2_cutEdge ( MMG5_pMesh  mesh,
MMG5_pTria  pt,
MMG5_pPoint  ppa,
MMG5_pPoint  ppb 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2_cutEdgeTriangle()

int MMG2_cutEdgeTriangle ( MMG5_pMesh  mesh,
int  k,
int  ia,
int  ib 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2_findTria()

int MMG2_findTria ( MMG5_pMesh  mesh,
int  ip 
)

Return the index of one triangle containing ip

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

◆ MMG2_isInTriangle()

int MMG2_isInTriangle ( MMG5_pMesh  mesh,
int  k,
double  c[2] 
)

Check whether c lies in triangle k; return k if so, 0 otherwise

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

◆ MMG2_locateEdge()

int MMG2_locateEdge ( MMG5_pMesh  mesh,
int  ia,
int  ib,
int *  kdep,
int *  list 
)
Parameters
meshpointer toward the mesh
iaindex of first extremity of the edge
ibindex of second extremity of the edge
kdeppointer toward the index of the first element intersecting the edge
listpointer toward the list of elts intersected by the edge
Returns
4 if the edge exist in the mesh, 0 if fail, ??? otherwise

Calculate the list of all the triangles intersected by edge (ia,ib), starting from kdep = one triangle in the ball of ia; List lon starts at index 0 and goes to lon-1 and stores 3*k + iare, where iare is one intersected edge; return 4 if edge exists in the mesh

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