50 printf(
"NULL Tree\n");
55 main(
int argc,
char *argv[])
67 fprintf(stderr,
"Usage:\n\t%s db_file object1 object2 ...\n", argv[0]);
71 MAT_IDN(identity_mat);
74 fprintf(stderr,
"Cannot open geometry database file %s\n", argv[1]);
82 for (i=2; i<argc; i++) {
83 printf(
"%s\n", argv[i]);
87 bu_log(
"WARNING: Unable to locate %s in %s, skipping\n", argv[i], argv[1]);
100 bu_log(
"idb_type = %d\n", ip.idb_type);
108 bu_log(
"\tRegion id = %d, aircode = %d GIFTmater = %d, los = %d\n",
112 bu_log(
"\tshader = %s (%s)\n" ,
118 bu_log(
"Pretty print:\n");
122 bu_log(
"Standard print:\n");
135 bu_log(
"ERROR: db_ck_v4gift_tree is unhappy\n");
int main(int argc, char *argv[])
char * d_namep
pointer to name string
void bu_log(const char *,...) _BU_ATTR_PRINTF12
int rt_db_get_internal(struct rt_db_internal *ip, const struct directory *dp, const struct db_i *dbip, const mat_t mat, struct resource *resp)
char region_flag
!0 ==> this COMB is a REGION
#define BU_DEBUG_MEM_CHECK
struct directory * db_lookup(const struct db_i *, const char *name, int noisy)
Header file for the BRL-CAD common definitions.
void rt_pr_tree_vls(struct bu_vls *vls, const union tree *tp)
#define ID_COMBINATION
Combination Record.
void rt_pr_tree(const union tree *tp, int lvl)
void bu_vls_free(struct bu_vls *vp)
struct resource rt_uniresource
default. Defined in librt/globals.c
#define RT_CK_DB_INTERNAL(_p)
void Print_tree(union tree *tree)
char * bu_vls_addr(const struct bu_vls *vp)
int bu_mem_barriercheck(void)
#define BU_DEBUG_COREDUMP
union tree * tree
Leading to tree_db_leaf leaves.
char * rt_pr_tree_str(const union tree *tree)
struct db_i * db_open(const char *name, const char *mode)
void bu_free(void *ptr, const char *str)
char rgb_valid
!0 ==> rgb[] has valid color
int db_dirbuild(struct db_i *dbip)
int db_ck_v4gift_tree(const union tree *tp)
void rt_db_free_internal(struct rt_db_internal *ip)