BRL-CAD
track.c File Reference
#include "common.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "vmath.h"
#include "bn.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "wdb.h"
#include "ged.h"
Include dependency graph for track.c:

Go to the source code of this file.

Data Structures

struct  track_solid
 

Functions

static void crdummy ()
 
static void trcurve ()
 
static void top ()
 
int ged_track2 (struct bu_vls *log_str, struct rt_wdb *wdbp, const char *argv[])
 
int ged_track (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

Adds "tracks" to the data file given the required info

Acknowledgements: Modifications by Bob Parker (SURVICE Engineering): *- adapt for use in LIBRT's database object *- removed prompting for input *- removed signal catching *- added basename parameter

Definition in file track.c.

Function Documentation

static void crdummy ( )

Referenced by ged_track2().

static void trcurve ( )

Referenced by ged_track2().

int ged_track2 ( struct bu_vls log_str,
struct rt_wdb wdbp,
const char *  argv[] 
)

Definition at line 161 of file track.c.

References bu_free(), BU_LIST_INIT, bu_malloc(), bu_strdup, bu_strlcpy, bu_vls_printf(), crdummy(), db_lookup(), db_i::dbi_local2base, rt_wdb::dbip, GED_ERROR, GED_OK, ID_ARB8, ID_TGC, LOOKUP_QUIET, RT_DIR_NULL, RT_DIR_SOLID, top(), trcurve(), WMOP_INTERSECT, WMOP_SUBTRACT, and WMOP_UNION.

Referenced by ged_track().

Here is the call graph for this function:

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

Create a track

Definition at line 577 of file track.c.

References bu_vls_printf(), bu_vls_trunc(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_READ_ONLY, GED_ERROR, GED_HELP, ged::ged_result_str, ged_track2(), ged::ged_wdbp, and usage().

Here is the call graph for this function: