BRL-CAD
bot_dump.c File Reference
#include "common.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <ctype.h>
#include "bnetwork.h"
#include "bu/cv.h"
#include "bu/getopt.h"
#include "bu/units.h"
#include "vmath.h"
#include "nmg.h"
#include "rtgeom.h"
#include "dm/bview.h"
#include "raytrace.h"
#include "wdb.h"
#include "brlcad_version.h"
#include "mater.h"
#include "obj.h"
#include "./ged_private.h"
Include dependency graph for bot_dump.c:

Go to the source code of this file.

Data Structures

struct  _ged_bot_dump_client_data
 
struct  _ged_obj_material
 

Macros

#define V3ARGS_SCALE(_a)   (_a)[X]*cfactor, (_a)[Y]*cfactor, (_a)[Z]*cfactor
 

Functions

void _ged_bot_dump (struct directory *dp, struct rt_bot_internal *bot, FILE *fp, int fd, const char *file_ext, const char *db_name)
 
int ged_bot_dump (struct ged *gedp, int argc, const char *argv[])
 
int ged_dbot_dump (struct ged *gedp, int argc, const char *argv[])
 

Variables

struct bu_list HeadObjMaterials = BU_LIST_INIT_ZERO
 
struct bu_vls obj_materials_file = BU_VLS_INIT_ZERO
 
FILE * obj_materials_fp
 
int num_obj_materials
 
int curr_obj_red
 
int curr_obj_green
 
int curr_obj_blue
 
fastf_t curr_obj_alpha
 

Detailed Description

The bot_dump command.

Definition in file bot_dump.c.

Macro Definition Documentation

#define V3ARGS_SCALE (   _a)    (_a)[X]*cfactor, (_a)[Y]*cfactor, (_a)[Z]*cfactor

Definition at line 56 of file bot_dump.c.

Function Documentation

void _ged_bot_dump ( struct directory dp,
struct rt_bot_internal *  bot,
FILE *  fp,
int  fd,
const char *  file_ext,
const char *  db_name 
)

Definition at line 598 of file bot_dump.c.

References bu_log(), bu_strlcpy, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_putc(), bu_vls_strcat(), bu_vls_strcpy(), directory::d_namep, lswap(), memset(), OTYPE_DXF, OTYPE_OBJ, OTYPE_SAT, OTYPE_STL, and SEEK_SET.

Referenced by dl_botdump(), and ged_bot_dump().

Here is the call graph for this function:

int ged_dbot_dump ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Variable Documentation

struct bu_list HeadObjMaterials = BU_LIST_INIT_ZERO

Definition at line 81 of file bot_dump.c.

struct bu_vls obj_materials_file = BU_VLS_INIT_ZERO

Definition at line 82 of file bot_dump.c.

FILE* obj_materials_fp

Definition at line 83 of file bot_dump.c.

Referenced by ged_dbot_dump().

int num_obj_materials

Definition at line 84 of file bot_dump.c.

Referenced by ged_dbot_dump().

int curr_obj_red

Definition at line 85 of file bot_dump.c.

Referenced by ged_dbot_dump().

int curr_obj_green

Definition at line 86 of file bot_dump.c.

Referenced by ged_dbot_dump().

int curr_obj_blue

Definition at line 87 of file bot_dump.c.

Referenced by ged_dbot_dump().

fastf_t curr_obj_alpha

Definition at line 88 of file bot_dump.c.

Referenced by ged_dbot_dump().