#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pkvaria.h"
#include "pknum.h"
#include "bsmesh.h"
#include "bsmprivate.h"
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 FAILURE | ( | c, | ||
n | ||||
) | { error_code = c; error_el = n; goto failure; } |
#define NEXTFAC_HEDGE | ( | fn, | ||
en | ||||
) |
((int)(en) < mfac[fn].degree-1 ? \ mfhei[mfac[fn].firsthalfedge+(int)(en)+1] : \ mfhei[mfac[fn].firsthalfedge])
#define PREVVERT_HEDGE | ( | vn, | ||
en | ||||
) |
((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))
boolean bsm_CheckMeshIntegrity | ( | int | nv, | |
const BSMvertex * | mv, | |||
const int * | mvhei, | |||
int | nhe, | |||
const BSMhalfedge * | mhe, | |||
int | nfac, | |||
const BSMfacet * | mfac, | |||
const int * | mfhei | |||
) |