BRL-CAD
tcl.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <string.h>
#include "bio.h"
#include "tcl.h"
#include "bu/parallel.h"
#include "vmath.h"
#include "bn.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "brlcad_version.h"
Include dependency graph for tcl.c:

Go to the source code of this file.

Data Structures

struct  dbcmdstruct
 

Macros

#define RT_FUNC_TCL_CAST(_func)   ((int (*)(ClientData clientData, Tcl_Interp *interp, int argc, const char *const *argv))_func)
 

Functions

int rt_tcl_parse_ray (Tcl_Interp *interp, struct xray *rp, const char *const *argv)
 
void rt_tcl_pr_cutter (Tcl_Interp *interp, const union cutter *cutp)
 
void rt_tcl_pr_hit (Tcl_Interp *interp, struct hit *hitp, const struct seg *segp, int flipflag)
 
int rt_tcl_a_hit (struct application *ap, struct partition *PartHeadp, struct seg *segHeadp)
 
int rt_tcl_a_miss (struct application *ap)
 
int rt_tcl_rt (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
int rt_tcl_import_from_path (Tcl_Interp *interp, struct rt_db_internal *ip, const char *path, struct rt_wdb *wdb)
 
void rt_tcl_setup (Tcl_Interp *interp)
 
int Rt_Init (Tcl_Interp *interp)
 
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_list_to_int_array (Tcl_Interp *interp, char *char_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_fastf_array (Tcl_Interp *interp, const char *char_list, fastf_t **array, int *array_len)
 

Macro Definition Documentation

#define RT_FUNC_TCL_CAST (   _func)    ((int (*)(ClientData clientData, Tcl_Interp *interp, int argc, const char *const *argv))_func)

Definition at line 42 of file tcl.c.

Function Documentation

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

Definition at line 78 of file tcl.c.

References bn_decode_vect(), xray::r_dir, and xray::r_pt.

Here is the call graph for this function:

void rt_tcl_pr_hit ( Tcl_Interp *  interp,
struct hit hitp,
const struct seg segp,
int  flipflag 
)
int rt_tcl_a_hit ( struct application ap,
struct partition PartHeadp,
struct seg segHeadp 
)

Definition at line 255 of file tcl.c.

References application::a_uptr, partition::pt_forw, RT_CK_PT, RT_CK_PT_HD, and rt_tcl_pr_hit().

Here is the call graph for this function:

int rt_tcl_a_miss ( struct application ap)

Definition at line 282 of file tcl.c.

References RT_CK_APPLICATION.

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

Definition at line 597 of file tcl.c.

References BU_STR_EQUAL, dbcmdstruct::cmdfunc, and dbcmdstruct::cmdname.

Referenced by to_rt_gettrees().

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

Definition at line 637 of file tcl.c.

References directory::d_namep, db_follow_path(), db_free_full_path(), DB_FULL_PATH_CUR_DIR, db_full_path_init(), db_init_db_tree_state(), db_string_to_path(), rt_wdb::dbip, LOOKUP_NOISY, RT_CK_DBI, RT_CK_WDB, rt_uniresource, strchr(), db_tree_state::ts_mat, and wdb_import().

Here is the call graph for this function:

void rt_tcl_setup ( Tcl_Interp *  interp)

Definition at line 709 of file tcl.c.

References rt_bot_minpieces, and rt_bot_tri_per_piece.

Referenced by Rt_Init().

int Rt_Init ( Tcl_Interp *  interp)

Definition at line 719 of file tcl.c.

References bu_avail_cpus(), BU_LIST_INIT, BU_LIST_IS_INITIALIZED, rt_wdb::l, resource::re_magic, RESOURCE_MAGIC, rt_init_resource(), rt_tcl_setup(), rt_uniresource, RTG, rt_g::rtg_headwdb, rt_g::rtg_parallel, and rt_g::rtg_vlfree.

Referenced by Tclcad_Init().

Here is the call graph for this function:

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 
)

Definition at line 762 of file tcl.c.

References bu_calloc().

Referenced by get_tcl_curve(), rt_nmg_adjust(), rt_nurb_adjust(), and tcl_list_to_int_array().

Here is the call graph for this function:

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

Definition at line 788 of file tcl.c.

References tcl_obj_to_int_array().

Here is the call graph for this function:

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

Definition at line 802 of file tcl.c.

References bu_calloc().

Referenced by get_tcl_curve(), rt_nmg_adjust(), rt_nurb_adjust(), and tcl_list_to_fastf_array().

Here is the call graph for this function:

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

Definition at line 829 of file tcl.c.

References tcl_obj_to_fastf_array().

Referenced by rt_arbn_adjust(), rt_ars_adjust(), rt_cline_adjust(), rt_ebm_adjust(), rt_extrude_adjust(), and rt_sketch_adjust().

Here is the call graph for this function: