BRL-CAD
libtclcad (BRL-CAD Tcl Functionality)

Files

file  defines.h
 Definitions header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
 
file  draw.h
 Drawing header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
 
file  misc.h
 Miscellaneous header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
 
file  setup.h
 Setup header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
 
file  tclcad.h
 Header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
 

Data Structures

struct  tclcad_view_data
 
struct  tclcad_ged_data
 
struct  tclcad_obj
 
struct  tclcad_io_data
 

Macros

#define TCLCAD_IDLE_MODE   0
 
#define TCLCAD_ROTATE_MODE   1
 
#define TCLCAD_TRANSLATE_MODE   2
 
#define TCLCAD_SCALE_MODE   3
 
#define TCLCAD_CONSTRAINED_ROTATE_MODE   4
 
#define TCLCAD_CONSTRAINED_TRANSLATE_MODE   5
 
#define TCLCAD_OROTATE_MODE   6
 
#define TCLCAD_OSCALE_MODE   7
 
#define TCLCAD_OTRANSLATE_MODE   8
 
#define TCLCAD_MOVE_ARB_EDGE_MODE   9
 
#define TCLCAD_MOVE_ARB_FACE_MODE   10
 
#define TCLCAD_ROTATE_ARB_FACE_MODE   11
 
#define TCLCAD_PROTATE_MODE   12
 
#define TCLCAD_PSCALE_MODE   13
 
#define TCLCAD_PTRANSLATE_MODE   14
 
#define TCLCAD_POLY_ELLIPSE_MODE   17
 
#define TCLCAD_POLY_RECTANGLE_MODE   18
 
#define TCLCAD_POLY_SQUARE_MODE   19
 
#define TCLCAD_RECTANGLE_MODE   20
 
#define TCLCAD_MOVE_METABALL_POINT_MODE   21
 
#define TCLCAD_MOVE_PIPE_POINT_MODE   22
 
#define TCLCAD_MOVE_BOT_POINT_MODE   23
 
#define TCLCAD_MOVE_BOT_POINTS_MODE   24
 
#define TCLCAD_DATA_MOVE_OBJECT_MODE   25
 
#define TCLCAD_DATA_MOVE_POINT_MODE   26
 
#define TCLCAD_DATA_SCALE_MODE   27
 
#define TCLCAD_OBJ_FB_MODE_OFF   0
 
#define TCLCAD_OBJ_FB_MODE_UNDERLAY   1
 
#define TCLCAD_OBJ_FB_MODE_INTERLAY   2
 
#define TCLCAD_OBJ_FB_MODE_OVERLAY   3
 
#define USE_FBSERV   1
 
#define TCLCAD_OBJ_NULL   (struct tclcad_obj *)0
 

Functions

void go_refresh (struct ged *gedp, struct bview *gdvp)
 
void go_refresh_draw (struct ged *gedp, struct bview *gdvp, int restore_zbuffer)
 
int go_view_axes (struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_labels (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_arrows (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_pick (struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_axes (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_lines (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_move (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_move_object_mode (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_move_point_mode (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_data_polygons (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_mouse_poly_circ (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_mouse_poly_cont (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_mouse_poly_ell (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_mouse_poly_rect (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_poly_circ_mode (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_poly_ell_mode (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_poly_rect_mode (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_run_tclscript (Tcl_Interp *interp, const char *tclscript, struct bu_vls *result_str)
 
int go_poly_cont_build (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
int go_poly_cont_build_end (Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
 
void fb_tcl_setup (void)
 
void tclcad_bn_mat_print (Tcl_Interp *interp, const char *title, const mat_t m)
 
int tclcad_rt_parse_ray (Tcl_Interp *interp, struct xray *rp, const char *const *argv)
 
void tclcad_rt_pr_cutter (Tcl_Interp *interp, const union cutter *cutp)
 
int tclcad_rt_cutter (ClientData clientData, Tcl_Interp *interp, int argc, const char *const *argv)
 
void tclcad_rt_pr_hit (Tcl_Interp *interp, struct hit *hitp, const struct seg *segp, int flipflag)
 
int tclcad_rt (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
int tclcad_rt_import_from_path (Tcl_Interp *interp, struct rt_db_internal *ip, const char *path, struct rt_wdb *wdb)
 
void db_full_path_appendresult (Tcl_Interp *interp, const struct db_full_path *pp)
 
int tcl_obj_to_int_array (Tcl_Interp *interp, Tcl_Obj *list, int **array, int *array_len)
 
int tcl_obj_to_fastf_array (Tcl_Interp *interp, Tcl_Obj *list, fastf_t **array, int *array_len)
 
int tcl_list_to_int_array (Tcl_Interp *interp, char *char_list, int **array, int *array_len)
 
int tcl_list_to_fastf_array (Tcl_Interp *interp, const char *char_list, fastf_t **array, int *array_len)
 
int to_open_tcl (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
struct applicationto_rt_gettrees_application (struct ged *gedp, int argc, const char *argv[])
 
struct tclcad_io_datatclcad_create_io_data (void)
 
void tclcad_destroy_io_data (struct tclcad_io_data *d)
 
void tclcad_create_io_handler (struct ged_subprocess *p, bu_process_io_t d, ged_io_func_t callback, void *data)
 
void tclcad_delete_io_handler (struct ged_subprocess *p, bu_process_io_t d)
 
int tclcad_tk_setup (Tcl_Interp *interp)
 
void tclcad_auto_path (Tcl_Interp *interp)
 
void tclcad_tcl_library (Tcl_Interp *interp)
 
void tclcad_bn_setup (Tcl_Interp *interp)
 
void tclcad_rt_setup (Tcl_Interp *interp)
 
int Rt_Init (Tcl_Interp *interp)
 
int Cho_Init (Tcl_Interp *interp)
 
int cho_open_tcl (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
void tclcad_register_cmds (Tcl_Interp *interp, struct bu_cmdtab *cmds)
 
void tclcad_set_argv (Tcl_Interp *interp, int argc, const char **argv)
 
int tclcad_init (Tcl_Interp *interp, int init_gui, struct bu_vls *tlog)
 

Detailed Description

Macro Definition Documentation

◆ TCLCAD_IDLE_MODE

#define TCLCAD_IDLE_MODE   0

Definition at line 48 of file defines.h.

◆ TCLCAD_ROTATE_MODE

#define TCLCAD_ROTATE_MODE   1

Definition at line 49 of file defines.h.

◆ TCLCAD_TRANSLATE_MODE

#define TCLCAD_TRANSLATE_MODE   2

Definition at line 50 of file defines.h.

◆ TCLCAD_SCALE_MODE

#define TCLCAD_SCALE_MODE   3

Definition at line 51 of file defines.h.

◆ TCLCAD_CONSTRAINED_ROTATE_MODE

#define TCLCAD_CONSTRAINED_ROTATE_MODE   4

Definition at line 52 of file defines.h.

◆ TCLCAD_CONSTRAINED_TRANSLATE_MODE

#define TCLCAD_CONSTRAINED_TRANSLATE_MODE   5

Definition at line 53 of file defines.h.

◆ TCLCAD_OROTATE_MODE

#define TCLCAD_OROTATE_MODE   6

Definition at line 54 of file defines.h.

◆ TCLCAD_OSCALE_MODE

#define TCLCAD_OSCALE_MODE   7

Definition at line 55 of file defines.h.

◆ TCLCAD_OTRANSLATE_MODE

#define TCLCAD_OTRANSLATE_MODE   8

Definition at line 56 of file defines.h.

◆ TCLCAD_MOVE_ARB_EDGE_MODE

#define TCLCAD_MOVE_ARB_EDGE_MODE   9

Definition at line 57 of file defines.h.

◆ TCLCAD_MOVE_ARB_FACE_MODE

#define TCLCAD_MOVE_ARB_FACE_MODE   10

Definition at line 58 of file defines.h.

◆ TCLCAD_ROTATE_ARB_FACE_MODE

#define TCLCAD_ROTATE_ARB_FACE_MODE   11

Definition at line 59 of file defines.h.

◆ TCLCAD_PROTATE_MODE

#define TCLCAD_PROTATE_MODE   12

Definition at line 60 of file defines.h.

◆ TCLCAD_PSCALE_MODE

#define TCLCAD_PSCALE_MODE   13

Definition at line 61 of file defines.h.

◆ TCLCAD_PTRANSLATE_MODE

#define TCLCAD_PTRANSLATE_MODE   14

Definition at line 62 of file defines.h.

◆ TCLCAD_POLY_ELLIPSE_MODE

#define TCLCAD_POLY_ELLIPSE_MODE   17

Definition at line 65 of file defines.h.

◆ TCLCAD_POLY_RECTANGLE_MODE

#define TCLCAD_POLY_RECTANGLE_MODE   18

Definition at line 66 of file defines.h.

◆ TCLCAD_POLY_SQUARE_MODE

#define TCLCAD_POLY_SQUARE_MODE   19

Definition at line 67 of file defines.h.

◆ TCLCAD_RECTANGLE_MODE

#define TCLCAD_RECTANGLE_MODE   20

Definition at line 68 of file defines.h.

◆ TCLCAD_MOVE_METABALL_POINT_MODE

#define TCLCAD_MOVE_METABALL_POINT_MODE   21

Definition at line 69 of file defines.h.

◆ TCLCAD_MOVE_PIPE_POINT_MODE

#define TCLCAD_MOVE_PIPE_POINT_MODE   22

Definition at line 70 of file defines.h.

◆ TCLCAD_MOVE_BOT_POINT_MODE

#define TCLCAD_MOVE_BOT_POINT_MODE   23

Definition at line 71 of file defines.h.

◆ TCLCAD_MOVE_BOT_POINTS_MODE

#define TCLCAD_MOVE_BOT_POINTS_MODE   24

Definition at line 72 of file defines.h.

◆ TCLCAD_DATA_MOVE_OBJECT_MODE

#define TCLCAD_DATA_MOVE_OBJECT_MODE   25

Definition at line 73 of file defines.h.

◆ TCLCAD_DATA_MOVE_POINT_MODE

#define TCLCAD_DATA_MOVE_POINT_MODE   26

Definition at line 74 of file defines.h.

◆ TCLCAD_DATA_SCALE_MODE

#define TCLCAD_DATA_SCALE_MODE   27

Definition at line 75 of file defines.h.

◆ TCLCAD_OBJ_FB_MODE_OFF

#define TCLCAD_OBJ_FB_MODE_OFF   0

Definition at line 77 of file defines.h.

◆ TCLCAD_OBJ_FB_MODE_UNDERLAY

#define TCLCAD_OBJ_FB_MODE_UNDERLAY   1

Definition at line 78 of file defines.h.

◆ TCLCAD_OBJ_FB_MODE_INTERLAY

#define TCLCAD_OBJ_FB_MODE_INTERLAY   2

Definition at line 79 of file defines.h.

◆ TCLCAD_OBJ_FB_MODE_OVERLAY

#define TCLCAD_OBJ_FB_MODE_OVERLAY   3

Definition at line 80 of file defines.h.

◆ USE_FBSERV

#define USE_FBSERV   1

Definition at line 83 of file defines.h.

◆ TCLCAD_OBJ_NULL

#define TCLCAD_OBJ_NULL   (struct tclcad_obj *)0

Definition at line 60 of file misc.h.

Function Documentation

◆ go_refresh()

void go_refresh ( struct ged gedp,
struct bview gdvp 
)

◆ go_refresh_draw()

void go_refresh_draw ( struct ged gedp,
struct bview gdvp,
int  restore_zbuffer 
)

◆ go_view_axes()

int go_view_axes ( struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_labels()

int go_data_labels ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_arrows()

int go_data_arrows ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_pick()

int go_data_pick ( struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_axes()

int go_data_axes ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_lines()

int go_data_lines ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_move()

int go_data_move ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_move_object_mode()

int go_data_move_object_mode ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_move_point_mode()

int go_data_move_point_mode ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_data_polygons()

int go_data_polygons ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_mouse_poly_circ()

int go_mouse_poly_circ ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_mouse_poly_cont()

int go_mouse_poly_cont ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_mouse_poly_ell()

int go_mouse_poly_ell ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_mouse_poly_rect()

int go_mouse_poly_rect ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_poly_circ_mode()

int go_poly_circ_mode ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_poly_ell_mode()

int go_poly_ell_mode ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_poly_rect_mode()

int go_poly_rect_mode ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_run_tclscript()

int go_run_tclscript ( Tcl_Interp *  interp,
const char *  tclscript,
struct bu_vls result_str 
)

◆ go_poly_cont_build()

int go_poly_cont_build ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ go_poly_cont_build_end()

int go_poly_cont_build_end ( Tcl_Interp *  interp,
struct ged gedp,
struct bview gdvp,
int  argc,
const char *  argv[],
const char *  usage 
)

◆ fb_tcl_setup()

void fb_tcl_setup ( void  )

◆ tclcad_bn_mat_print()

void tclcad_bn_mat_print ( Tcl_Interp *  interp,
const char *  title,
const mat_t  m 
)

◆ tclcad_rt_parse_ray()

int tclcad_rt_parse_ray ( Tcl_Interp *  interp,
struct xray rp,
const char *const *  argv 
)

Allow specification of a ray to trace, in two convenient formats.

Examples - {0 0 0} dir {0 0 -1} {20 -13.5 20} at {10 .5 3}

◆ tclcad_rt_pr_cutter()

void tclcad_rt_pr_cutter ( Tcl_Interp *  interp,
const union cutter cutp 
)

Format a "union cutter" structure in a TCL-friendly format. Useful for debugging space partitioning

Examples - type cutnode type boxnode

◆ tclcad_rt_cutter()

int tclcad_rt_cutter ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char *const *  argv 
)

◆ tclcad_rt_pr_hit()

void tclcad_rt_pr_hit ( Tcl_Interp *  interp,
struct hit hitp,
const struct seg segp,
int  flipflag 
)

Format a hit in a TCL-friendly format.

It is possible that a solid may have been removed from the directory after this database was prepped, so check pointers carefully.

It might be beneficial to use some format other than g to give the user more precision.

◆ tclcad_rt()

int tclcad_rt ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Generic interface for the LIBRT_class manipulation routines.

Usage: procname dbCmdName ?args? Returns: result of cmdName LIBRT operation.

Objects of type 'procname' must have been previously created by the 'rt_gettrees' operation performed on a database object.

Example - .inmem rt_gettrees .rt all.g .rt shootray {0 0 0} dir {0 0 -1}

◆ tclcad_rt_import_from_path()

int tclcad_rt_import_from_path ( Tcl_Interp *  interp,
struct rt_db_internal ip,
const char *  path,
struct rt_wdb wdb 
)

Given the name of a database object or a full path to a leaf object, obtain the internal form of that leaf. Packaged separately mainly to make available nice Tcl error handling.

Returns - TCL_OK TCL_ERROR

◆ db_full_path_appendresult()

void db_full_path_appendresult ( Tcl_Interp *  interp,
const struct db_full_path pp 
)

Take a db_full_path and append it to the TCL result string.

NOT moving to db_fullpath.h because it is evil Tcl_Interp api

◆ tcl_obj_to_int_array()

int tcl_obj_to_int_array ( Tcl_Interp *  interp,
Tcl_Obj *  list,
int **  array,
int *  array_len 
)

Expects the Tcl_obj argument (list) to be a Tcl list and extracts list elements, converts them to int, and stores them in the passed in array. If the array_len argument is zero, a new array of appropriate length is allocated. The return value is the number of elements converted.

◆ tcl_obj_to_fastf_array()

int tcl_obj_to_fastf_array ( Tcl_Interp *  interp,
Tcl_Obj *  list,
fastf_t **  array,
int *  array_len 
)

Expects the Tcl_obj argument (list) to be a Tcl list and extracts list elements, converts them to fastf_t, and stores them in the passed in array. If the array_len argument is zero, a new array of appropriate length is allocated. The return value is the number of elements converted.

◆ tcl_list_to_int_array()

int tcl_list_to_int_array ( Tcl_Interp *  interp,
char *  char_list,
int **  array,
int *  array_len 
)

interface to above tcl_obj_to_int_array() routine. This routine expects a character string instead of a Tcl_Obj.

Returns the number of elements converted.

◆ tcl_list_to_fastf_array()

int tcl_list_to_fastf_array ( Tcl_Interp *  interp,
const char *  char_list,
fastf_t **  array,
int *  array_len 
)

interface to above tcl_obj_to_fastf_array() routine. This routine expects a character string instead of a Tcl_Obj.

returns the number of elements converted.

◆ to_open_tcl()

int to_open_tcl ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

◆ to_rt_gettrees_application()

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

◆ tclcad_create_io_data()

struct tclcad_io_data * tclcad_create_io_data ( void  )

◆ tclcad_destroy_io_data()

void tclcad_destroy_io_data ( struct tclcad_io_data d)

◆ tclcad_create_io_handler()

void tclcad_create_io_handler ( struct ged_subprocess p,
bu_process_io_t  d,
ged_io_func_t  callback,
void *  data 
)

◆ tclcad_delete_io_handler()

void tclcad_delete_io_handler ( struct ged_subprocess p,
bu_process_io_t  d 
)

◆ tclcad_tk_setup()

int tclcad_tk_setup ( Tcl_Interp *  interp)

◆ tclcad_auto_path()

void tclcad_auto_path ( Tcl_Interp *  interp)

◆ tclcad_tcl_library()

void tclcad_tcl_library ( Tcl_Interp *  interp)

◆ tclcad_bn_setup()

void tclcad_bn_setup ( Tcl_Interp *  interp)

◆ tclcad_rt_setup()

void tclcad_rt_setup ( Tcl_Interp *  interp)

Add all the supported Tcl interfaces to LIBRT routines to the list of commands known by the given interpreter.

wdb_open creates database "objects" which appear as Tcl procs, which respond to many operations.

The "db rt_gettrees" operation in turn creates a ray-traceable object as yet another Tcl proc, which responds to additional operations.

Note that the MGED mainline C code automatically runs "wdb_open db" and "wdb_open .inmem" on behalf of the MGED user, which exposes all of this power.

◆ Rt_Init()

int Rt_Init ( Tcl_Interp *  interp)

Allows LIBRT to be dynamically loaded to a vanilla tclsh/wish with "load /usr/brlcad/lib/libbu.so" "load /usr/brlcad/lib/libbn.so" "load /usr/brlcad/lib/librt.so"

◆ Cho_Init()

int Cho_Init ( Tcl_Interp *  interp)

◆ cho_open_tcl()

int cho_open_tcl ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Open a command history object.

USAGE: ch_open name

◆ tclcad_register_cmds()

void tclcad_register_cmds ( Tcl_Interp *  interp,
struct bu_cmdtab cmds 
)

This is a convenience routine for registering an array of commands with a Tcl interpreter. Note - this is not intended for use by commands with associated state (i.e. ClientData). The interp is passed to the bu_cmdtab function as clientdata instead of the bu_cmdtab entry.

Parameters
interp- Tcl interpreter wherein to register the commands
cmds- commands and related function pointers

◆ tclcad_set_argv()

void tclcad_set_argv ( Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Set the variables "argc" and "argv" in interp.

◆ tclcad_init()

int tclcad_init ( Tcl_Interp *  interp,
int  init_gui,
struct bu_vls tlog 
)

This is the "all-in-one" initialization intended for use by applications that are providing a Tcl_Interp and want to initialize all of the BRL-CAD Tcl/Tk interfaces.

libbu, libbn, librt, libged, and Itcl are always initialized.

To initialize graphical elements (Tk/Itk), set init_gui to 1.