Defines | Functions

bsmesh00.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pkvaria.h"
#include "pknum.h"
#include "bsmesh.h"
#include "bsmprivate.h"
Include dependency graph for bsmesh00.c:

Defines

#define FAILURE(c, n)   { error_code = c; error_el = n; goto failure; }
#define PREVVERT_HEDGE(vn, en)
#define NEXTFAC_HEDGE(fn, en)

Functions

boolean bsm_CheckMeshIntegrity (int nv, const BSMvertex *mv, const int *mvhei, int nhe, const BSMhalfedge *mhe, int nfac, const BSMfacet *mfac, const int *mfhei)

Define Documentation

#define FAILURE (   c,
  n 
)    { error_code = c; error_el = n; goto failure; }
#define NEXTFAC_HEDGE (   fn,
  en 
)
Value:
((int)(en) < mfac[fn].degree-1 ? \
    mfhei[mfac[fn].firsthalfedge+(int)(en)+1] : \
    mfhei[mfac[fn].firsthalfedge])
#define PREVVERT_HEDGE (   vn,
  en 
)
Value:
((int)(en) > 0 ? \
    mvhei[mv[vn].firsthalfedge+(int)(en)-1] : \
    (mhe[mvhei[mv[vn].firsthalfedge+mv[vn].degree-1]].otherhalf >= 0 ? \
      mvhei[mv[vn].firsthalfedge+mv[vn].degree-1] : \
      -1))

Function Documentation

boolean bsm_CheckMeshIntegrity ( int  nv,
const BSMvertex mv,
const int *  mvhei,
int  nhe,
const BSMhalfedge mhe,
int  nfac,
const BSMfacet mfac,
const int *  mfhei 
)