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

Functions

int MMG2D_boulep (MMG5_pMesh mesh, int ifirst, int iploc, int *list)
 
int MMG2D_boulen (MMG5_pMesh mesh, int start, int8_t ip, int *pleft, int *pright, double *nn)
 
int MMG2D_boulet (MMG5_pMesh mesh, int start, int8_t ip, int *list)
 
int MMG2D_bouleendp (MMG5_pMesh mesh, int start, int8_t ip, int *ip1, int *ip2)
 

Variables

static uint8_t inxt [3] = {1,2,0}
 
static uint8_t iprev [3] = {2,0,1}
 

Function Documentation

◆ MMG2D_bouleendp()

int MMG2D_bouleendp ( MMG5_pMesh  mesh,
int  start,
int8_t  ip,
int *  ip1,
int *  ip2 
)
Parameters
meshpointer toward the mesh structure.
startindex of triangle to start.
ipindex of point for wich we compute the ball.
Returns
1 if success, 0 if fail.

Find the two endpoints of the boundary curves joining ip and fill ip1 and ip2 with their indices.

Here is the caller graph for this function:

◆ MMG2D_boulen()

int MMG2D_boulen ( MMG5_pMesh  mesh,
int  start,
int8_t  ip,
int *  pleft,
int *  pright,
double *  nn 
)
Parameters
meshpointer toward the mesh
startindex of the first tria
iplocal index of the point on which we work in tria start
pleftindex of the left point of ip along the geom edge (local index of the point inside a triangle)
prightindex of the right point of ip along the geom edge (local index of the point inside a triangle)
nncomputed normal at ip
Returns
0 if fail, 1 if success

Travel the ball of point ip in triangle start, which is assumed to lie either on the external or on an internal boundary of the mesh, and return the normal vector convention: the normal vector is oriented from the half ball it starts with towards its exterior return pright = 3*kk+ii, where kk = last triangle in the first travel, and ii = local index of ip in kk pleft = 3*kk+ii, where kk = last triangle in the second travel, and ii = local index of ip in kk.

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

◆ MMG2D_boulep()

int MMG2D_boulep ( MMG5_pMesh  mesh,
int  ifirst,
int  iploc,
int *  list 
)
Here is the caller graph for this function:

◆ MMG2D_boulet()

int MMG2D_boulet ( MMG5_pMesh  mesh,
int  start,
int8_t  ip,
int *  list 
)
Parameters
meshpointer toward the mesh structure.
startindex of triangle to start.
ipindex of point for wich we compute the ball.
listpointer toward the computed ball of ip.
Returns
the size of the computed ball or 0 if fail.

Find all triangles sharing ip, $list[0] =$ start do not stop when crossing ridge.

Here is the caller graph for this function:

Variable Documentation

◆ inxt

uint8_t inxt[3] = {1,2,0}
static

◆ iprev

uint8_t iprev[3] = {2,0,1}
static