BRL-CAD
debug.h
Go to the documentation of this file.
1/* N M G / D E B U G . H
2 * BRL-CAD
3 *
4 * Copyright (c) 2004-2023 United States Government as represented by
5 * the U.S. Army Research Laboratory.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * version 2.1 as published by the Free Software Foundation.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this file; see the file named COPYING for more
18 * information.
19 */
20/** @addtogroup nmg_debug
21 *
22 * Debugging flags for NMG
23 *
24 */
25/** @{ */
26/** @file include/nmg/debug.h */
27
28#ifndef NMG_DEBUG_H
29#define NMG_DEBUG_H
30
31#include "common.h"
32
33#include "nmg/defines.h"
34
35__BEGIN_DECLS
36
37#define NMG_DEBUG_PL_ANIM 0x00000001 /**< @brief 1 mged: animated evaluation */
38#define NMG_DEBUG_PL_SLOW 0x00000002 /**< @brief 2 mged: add delays to animation */
39#define NMG_DEBUG_GRAPHCL 0x00000004 /**< @brief 3 mged: graphic classification */
40#define NMG_DEBUG_PL_LOOP 0x00000008 /**< @brief 4 loop class (needs GRAPHCL) */
41#define NMG_DEBUG_PLOTEM 0x00000010 /**< @brief 5 make plots in debugged routines (needs other flags set too) */
42#define NMG_DEBUG_POLYSECT 0x00000020 /**< @brief 6 nmg_inter: face intersection */
43#define NMG_DEBUG_VERIFY 0x00000040 /**< @brief 7 nmg_vshell() frequently, verify health */
44#define NMG_DEBUG_BOOL 0x00000080 /**< @brief 8 nmg_bool: */
45#define NMG_DEBUG_CLASSIFY 0x00000100 /**< @brief 9 nmg_class: */
46#define NMG_DEBUG_BOOLEVAL 0x00000200 /**< @brief 10 nmg_eval: what to retain */
47#define NMG_DEBUG_BASIC 0x00000400 /**< @brief 11 nmg_mk.c and nmg_mod.c routines */
48#define NMG_DEBUG_MESH 0x00000800 /**< @brief 12 nmg_mesh: describe edge search */
49#define NMG_DEBUG_MESH_EU 0x00001000 /**< @brief 13 nmg_mesh: list edges meshed */
50#define NMG_DEBUG_POLYTO 0x00002000 /**< @brief 14 nmg_misc: polytonmg */
51#define NMG_DEBUG_LABEL_PTS 0x00004000 /**< @brief 15 label points in plot files */
52#define NMG_DEBUG_UNUSED1 0x00008000 /**< @brief 16 UNUSED */
53#define NMG_DEBUG_NMGRT 0x00010000 /**< @brief 17 ray tracing */
54#define NMG_DEBUG_FINDEU 0x00020000 /**< @brief 18 nmg_mod: nmg_findeu() */
55#define NMG_DEBUG_CMFACE 0x00040000 /**< @brief 19 nmg_mod: nmg_cmface() */
56#define NMG_DEBUG_CUTLOOP 0x00080000 /**< @brief 20 nmg_mod: nmg_cut_loop */
57#define NMG_DEBUG_VU_SORT 0x00100000 /**< @brief 21 nmg_fcut: coincident vu sort */
58#define NMG_DEBUG_FCUT 0x00200000 /**< @brief 22 nmg_fcut: face cutter */
59#define NMG_DEBUG_RT_SEGS 0x00400000 /**< @brief 23 nmg_rt_segs: */
60#define NMG_DEBUG_RT_ISECT 0x00800000 /**< @brief 24 nmg_rt_isect: */
61#define NMG_DEBUG_TRI 0x01000000 /**< @brief 25 nmg_tri */
62#define NMG_DEBUG_PNT_FU 0x02000000 /**< @brief 26 nmg_pt_fu */
63#define NMG_DEBUG_MANIF 0x04000000 /**< @brief 27 nmg_manif */
64#define NMG_DEBUG_UNUSED2 0x08000000 /**< @brief 28 UNUSED */
65#define NMG_DEBUG_UNUSED3 0x10000000 /**< @brief 29 UNUSED */
66#define NMG_DEBUG_UNUSED4 0x20000000 /**< @brief 30 UNUSED */
67#define NMG_DEBUG_UNUSED5 0x40000000 /**< @brief 31 UNUSED */
68#define NMG_DEBUG_UNUSED6 0x80000000 /**< @brief 32 UNUSED */
69#define NMG_DEBUG_FORMAT "\020" /**< @brief print hex */ \
70 "\040UNUSED6" \
71 "\037UNUSED5" \
72 "\036UNUSED4" \
73 "\035UNUSED3" \
74 "\034UNUSED2" \
75 "\033MANIF" \
76 "\032PT_FU" \
77 "\031TRI" \
78 "\030RT_ISECT" \
79 "\027RT_SEGS" \
80 "\026FCUT" \
81 "\025VU_SORT" \
82 "\024CUTLOOP" \
83 "\023CMFACE" \
84 "\022FINDEU" \
85 "\021NMGRT" \
86 "\020UNUSED1" \
87 "\017LABEL_PTS" \
88 "\016POLYTO" \
89 "\015MESH_EU" \
90 "\014MESH" \
91 "\013BASIC" \
92 "\012BOOLEVAL" \
93 "\011CLASSIFY" \
94 "\010BOOL" \
95 "\7VERIFY" \
96 "\6POLYSECT" \
97 "\5PLOTEM" \
98 "\4PL_LOOP" \
99 "\3GRAPHCL" \
100 "\2PL_SLOW" \
101 "\1PL_ANIM"
102
103__END_DECLS
104
105#endif /* NMG_H */
106
107/** @} */
108/*
109 * Local Variables:
110 * mode: C
111 * tab-width: 8
112 * indent-tabs-mode: t
113 * c-file-style: "stroustrup"
114 * End:
115 * ex: shiftwidth=4 tabstop=8
116 */
Header file for the BRL-CAD common definitions.