nmg_manif.c File Reference

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

Include dependency graph for nmg_manif.c:

Go to the source code of this file.

Defines

#define PAINT_INTERIOR   1
#define PAINT_EXTERIOR   0
#define BU_LIST_LINK_CHECK(p)

Functions

int nmg_dangling_face (const struct faceuse *fu, register const char *manifolds)
char * nmg_shell_manifolds (struct shell *sp, char *tbl)
char * nmg_manifolds (struct model *m)


Detailed Description

Routines for assessing the manifold dimension of an object.

Author - Lee A. Butler

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

Definition in file nmg_manif.c.


Define Documentation

#define PAINT_INTERIOR   1
 

Definition at line 55 of file nmg_manif.c.

Referenced by nmg_shell_manifolds().

#define PAINT_EXTERIOR   0
 

Definition at line 56 of file nmg_manif.c.

Referenced by nmg_shell_manifolds().

#define BU_LIST_LINK_CHECK  ) 
 

Value:

if (BU_LIST_PNEXT_PLAST(bu_list, p) != p || \
            BU_LIST_PLAST_PNEXT(bu_list, p) != p) { \
                bu_log("%s[%d]: linked list integrity check failed\n", \
                                __FILE__, __LINE__); \
                bu_log("0x%08x->forw(0x%08x)->back = 0x%08x\n", \
                        (p), (p)->forw, (p)->forw->back); \
                bu_log("0x%08x->back(0x%08x)->forw = 0x%08x\n", \
                        (p), (p)->back, (p)->back->forw); \
                rt_bomb("Goodbye\n"); \
        }

Definition at line 58 of file nmg_manif.c.

Referenced by nmg_dangling_face(), nmg_manifolds(), and nmg_shell_manifolds().


Function Documentation

int nmg_dangling_face const struct faceuse fu,
register const char *  manifolds
 

N M G _ D A N G L I N G _ F A C E

Determine if a face has any "dangling" edges.

Return 1 face has dangling edge 0 face does not have a dangling edge

Definition at line 80 of file nmg_manif.c.

References BN_TOL_MAGIC, BU_LIST_FIRST_MAGIC, BU_LIST_FOR, BU_LIST_LINK_CHECK, bu_log(), DEBUG_BASIC, DEBUG_MANIF, bn_tol::dist, bn_tol::dist_sq, loopuse::down_hd, edgeuse::eumate_p, loopuse::fu_p, loopuse::l, faceuse::lu_hd, edgeuse::lu_p, bn_tol::magic, NMG_2MANIFOLD, NMG_CK_EDGEUSE, NMG_CK_FACEUSE, NMG_CK_LOOPUSE, NMG_EDGEUSE_MAGIC, NMG_MANIFOLDS, nmg_pr_fu_around_eu(), nmg_radial_face_edge_in_shell(), NULL, bn_tol::para, bn_tol::perp, loopuse::up, and edgeuse::up.

Here is the call graph for this function:


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