nmg_ck.c File Reference

#include "common.h"
#include <stddef.h>
#include <stdio.h>
#include <strings.h>
#include "machine.h"
#include "vmath.h"
#include "nmg.h"
#include "raytrace.h"

Include dependency graph for nmg_ck.c:

Go to the source code of this file.

Data Structures

struct  v_ck_state

Functions

void nmg_vvg (const struct vertex_g *vg)
void nmg_vvertex (const struct vertex *v, const struct vertexuse *vup)
void nmg_vvua (const long int *vua)
void nmg_vvu (const struct vertexuse *vu, const long int *up_magic_p)
void nmg_veg (const long int *eg)
void nmg_vedge (const struct edge *e, const struct edgeuse *eup)
void nmg_veu (const struct bu_list *hp, const long int *up_magic_p)
void nmg_vlg (const struct loop_g *lg)
void nmg_vloop (const struct loop *l, const struct loopuse *lup)
void nmg_vlu (const struct bu_list *hp, const long int *up)
void nmg_vfg (const struct face_g_plane *fg)
void nmg_vface (const struct face *f, const struct faceuse *fup)
void nmg_vfu (const struct bu_list *hp, const struct shell *s)
void nmg_vshell (const struct bu_list *hp, const struct nmgregion *r)
void nmg_vregion (const struct bu_list *hp, const struct model *m)
void nmg_vmodel (const struct model *m)
void nmg_ck_e (const struct edgeuse *eu, const struct edge *e, const char *str)
void nmg_ck_vu (const long int *parent, const struct vertexuse *vu, const char *str)
void nmg_ck_eu (const long int *parent, const struct edgeuse *eu, const char *str)
void nmg_ck_lg (const struct loop *l, const struct loop_g *lg, const char *str)
void nmg_ck_l (const struct loopuse *lu, const struct loop *l, const char *str)
void nmg_ck_lu (const long int *parent, const struct loopuse *lu, const char *str)
void nmg_ck_fg (const struct face *f, const struct face_g_plane *fg, const char *str)
void nmg_ck_f (const struct faceuse *fu, const struct face *f, const char *str)
void nmg_ck_fu (const struct shell *s, const struct faceuse *fu, const char *str)
int nmg_ck_eg_verts (const struct edge_g_lseg *eg, const struct bn_tol *tol)
int nmg_ck_geometry (const struct model *m, const struct bn_tol *tol)
int nmg_ck_face_worthless_edges (const struct faceuse *fu)
void nmg_ck_lueu (const struct loopuse *cklu, const char *s)
int nmg_check_radial (const struct edgeuse *eu, const struct bn_tol *tol)
int nmg_eu_2s_orient_bad (const struct edgeuse *eu, const struct shell *s1, const struct shell *s2, const struct bn_tol *tol)
int nmg_ck_closed_surf (const struct shell *s, const struct bn_tol *tol)
int nmg_ck_closed_region (const struct nmgregion *r, const struct bn_tol *tol)
void nmg_ck_v_in_2fus (const struct vertex *vp, const struct faceuse *fu1, const struct faceuse *fu2, const struct bn_tol *tol)
void nmg_ck_vs_in_region (const struct nmgregion *r, const struct bn_tol *tol)


Detailed Description

Validators and consistency checkers for NMG data structures.

Authors - Lee A. Butler Michael John Muuss John R. Anderson

Source - The U. S. Army Research Laboratory Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file nmg_ck.c.


Function Documentation

void nmg_vvua const long int *  vua  ) 
 

Definition at line 102 of file nmg_ck.c.

References NMG_CK_VERTEXUSE_A_EITHER.

void nmg_vvu const struct vertexuse vu,
const long int *  up_magic_p
 

N M G _ V V U

Verify vertexuse

Definition at line 113 of file nmg_ck.c.

References vertexuse::a, bu_identify_magic(), BU_LIST_FIRST_MAGIC, BU_LIST_HEAD_MAGIC, BU_LIST_PNEXT_PLAST, bu_log(), bu_list::forw, vertexuse::l, vertexuse::magic_p, NMG_CK_VERTEXUSE, NMG_VERTEXUSE_MAGIC, nmg_vvertex(), nmg_vvua(), rt_bomb(), vertexuse::up, and vertexuse::v_p.

Here is the call graph for this function:

void nmg_veg const long int *  eg  ) 
 

Definition at line 142 of file nmg_ck.c.

References bu_ck_list_magic(), BU_LIST_FOR, BU_LIST_MAIN_PTR, bu_log(), edgeuse::g, edgeuse::l2, edgeuse::magic_p, NMG_CK_EDGE_G_EITHER, NMG_CK_EDGEUSE, NMG_EDGE_G_CNURB_MAGIC, NMG_EDGE_G_LSEG_MAGIC, NMG_EDGEUSE2_MAGIC, NULL, and rt_bomb().

Here is the call graph for this function:

void nmg_veu const struct bu_list hp,
const long int *  up_magic_p
 

N M G _ V E U

Verify edgeuse list.

Definition at line 251 of file nmg_ck.c.

References bu_list::back, bu_ck_list_magic(), BU_LIST_FOR, BU_LIST_PNEXT_CIRC, BU_LIST_PPREV_CIRC, bu_log(), vertex_g::coord, edgeuse::e_p, edgeuse::eumate_p, edgeuse::l, bu_list::magic, NMG_CK_EDGEUSE, NMG_EDGEUSE_MAGIC, NMG_LOOPUSE_MAGIC, nmg_pr_lu_briefly(), NMG_SHELL_MAGIC, nmg_vedge(), nmg_veg(), nmg_vvu(), NULL, OT_NONE, OT_OPPOSITE, OT_SAME, OT_UNSPEC, rt_bomb(), V3ARGS, vertexuse::v_p, vertex::vg_p, and edgeuse::vu_p.

Here is the call graph for this function:

void nmg_vlu const struct bu_list hp,
const long int *  up
 

N M G _ V L U

Verify loopuse

Definition at line 427 of file nmg_ck.c.

References BU_LIST_FIRST, BU_LIST_FIRST_MAGIC, BU_LIST_FOR, BU_LIST_PNEXT_PLAST, bu_log(), NMG_CK_LOOPUSE, NMG_EDGEUSE_MAGIC, NMG_LOOPUSE_MAGIC, NMG_VERTEXUSE_MAGIC, nmg_veu(), nmg_vloop(), nmg_vvu(), OT_BOOLPLACE, OT_NONE, OT_OPPOSITE, OT_SAME, OT_UNSPEC, and rt_bomb().

Here is the call graph for this function:

void nmg_ck_vu const long int *  parent,
const struct vertexuse vu,
const char *  str
 

N M G _ C K _ V U

Definition at line 743 of file nmg_ck.c.

References bu_calloc(), bu_free(), rt_bomb(), and void().

Here is the call graph for this function:

void nmg_ck_eu const long int *  parent,
const struct edgeuse eu,
const char *  str
 

N M G _ C K _ E U

Definition at line 760 of file nmg_ck.c.

References bu_calloc(), bu_free(), BU_LIST_PNEXT_CIRC, BU_LIST_PPREV_CIRC, edgeuse::eumate_p, nmg_ck_e(), NMG_CK_EDGE, NMG_CK_EDGEUSE, NMG_CK_VERTEXUSE, nmg_ck_vu(), NMG_LOOPUSE_MAGIC, NMG_SHELL_MAGIC, edgeuse::radial_p, rt_bomb(), vertexuse::v_p, void(), and edgeuse::vu_p.

Here is the call graph for this function:

void nmg_ck_lu const long int *  parent,
const struct loopuse lu,
const char *  str
 

N M G _ C K _ L U

Definition at line 862 of file nmg_ck.c.

References bu_calloc(), bu_free(), BU_LIST_FIRST, BU_LIST_FIRST_MAGIC, BU_LIST_FOR, vertexuse::l, NMG_CK_EDGEUSE, nmg_ck_eu(), nmg_ck_l(), NMG_CK_LOOP, NMG_CK_LOOPUSE, NMG_CK_VERTEXUSE, nmg_ck_vu(), NMG_EDGEUSE_MAGIC, NMG_FACEUSE_MAGIC, NMG_SHELL_MAGIC, NMG_VERTEXUSE_MAGIC, rt_bomb(), and void().

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:07 2006 for BRL-CAD by  doxygen 1.4.6