Collaboration diagram for bn Tcl interface:
![]() |
Files | |
file | bn_tcl.c |
Tcl interfaces to all the LIBBN math routines. | |
Data Structures | |
struct | math_func_link |
Functions | |
int | bn_decode_mat (fastf_t *m, const char *str) |
int | bn_decode_quat (fastf_t *q, const char *str) |
int | bn_decode_vect (fastf_t *v, const char *str) |
int | bn_decode_hvect (fastf_t *v, const char *str) |
void | bn_encode_mat (struct bu_vls *vp, const mat_t m) |
void | bn_encode_quat (struct bu_vls *vp, const mat_t q) |
void | bn_encode_vect (struct bu_vls *vp, const mat_t v) |
void | bn_encode_hvect (struct bu_vls *vp, const mat_t v) |
void | bn_quat_distance_wrapper (double *dp, mat_t q1, mat_t q2) |
void | bn_mat_scale_about_pt_wrapper (int *statusp, mat_t mat, const point_t pt, const double scale) |
int | bn_math_cmd (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) |
Tcl wrappers for the math functions. | |
int | bn_cmd_noise_perlin (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) |
int | bn_cmd_noise (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) |
int | bn_cmd_noise_slice (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) |
usage: noise_slice xdim ydim inv h_val lac octaves dX dY dZ sX [sY sZ] | |
int | bn_cmd_random (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) |
void | bn_tcl_mat_print (Tcl_Interp *interp, const char *title, const mat_t m) |
void | bn_tcl_setup (Tcl_Interp *interp) |
Add all the supported Tcl interfaces to LIBBN routines to the list of commands known by the given interpreter. | |
int | Bn_Init (Tcl_Interp *interp) |
Allows LIBBN to be dynamically loade to a vanilla tclsh/wish with "load /usr/brlcad/lib/libbn.so". | |
double | bn_noise_fbm (point_t point, double h_val, double lacunarity, double octaves) |
double | bn_noise_turb (point_t point, double h_val, double lacunarity, double octaves) |
|
Definition at line 66 of file bn_tcl.c. References MAT_IDN. |
|
|
|
|
|
|
|
Definition at line 102 of file bn_tcl.c. References bu_vls_printf(), bu_vls_putc(), and NULL. Referenced by bn_math_cmd(), db_tcl_tree_describe(), vo_model2view_cmd(), vo_pmat_cmd(), vo_pmodel2view_cmd(), vo_rmat_cmd(), and vo_view2model_cmd(). Here is the call graph for this function: ![]() |
|
Definition at line 115 of file bn_tcl.c. References bu_vls_printf(), and V4ARGS. Referenced by bn_math_cmd(). Here is the call graph for this function: ![]() |
|
Definition at line 121 of file bn_tcl.c. References bu_vls_printf(), and V3ARGS. Referenced by bn_math_cmd(), rt_tcl_pr_hit(), vo_aet_cmd(), vo_center_cmd(), vo_eye_cmd(), vo_keypoint_cmd(), vo_m2vPoint_cmd(), vo_mrotPoint_cmd(), vo_v2mPoint_cmd(), vo_viewDir_cmd(), and wdb_ocenter_cmd(). Here is the call graph for this function: ![]() |
|
Definition at line 127 of file bn_tcl.c. References bu_vls_printf(), and V4ARGS. Referenced by bn_math_cmd(). Here is the call graph for this function: ![]() |
|
Definition at line 133 of file bn_tcl.c. References quat_distance(). Referenced by bn_math_cmd(). Here is the call graph for this function: ![]() |
|
Definition at line 139 of file bn_tcl.c. References bn_mat_scale_about_pt(). Referenced by bn_math_cmd(). Here is the call graph for this function: ![]() |
|
|
Definition at line 674 of file bn_tcl.c. References atof(), bn_noise_perlin(), interp, NULL, Tcl_Interp::result, TCL_ERROR, TCL_OK, X, Y, and Z. Here is the call graph for this function: ![]() |
|
Definition at line 704 of file bn_tcl.c. References atof(), bn_noise_fbm(), bn_noise_turb(), interp, NULL, Tcl_Interp::result, TCL_ERROR, TCL_OK, and val. Here is the call graph for this function: ![]() |
|
usage: noise_slice xdim ydim inv h_val lac octaves dX dY dZ sX [sY sZ] The idea here is to get a whole slice of noise at once, thereby avoiding the overhead of doing this in Tcl. Definition at line 755 of file bn_tcl.c. References atof(), bn_noise_fbm(), interp, NOISE_FBM, NULL, TCL_ERROR, val, VSETALL, X, Y, and Z. Here is the call graph for this function: ![]() |
|
Definition at line 848 of file bn_tcl.c. References BN_RANDOM, interp, NULL, TCL_ERROR, TCL_OK, and val. |
|
B N _ M A T _ P R I N T Definition at line 892 of file bn_tcl.c. References bn_mat_print_guts(), interp, and NULL. Here is the call graph for this function: ![]() |
|
Add all the supported Tcl interfaces to LIBBN routines to the list of commands known by the given interpreter. B N _ T C L _ S E T U P Definition at line 909 of file bn_tcl.c. References bn_math_cmd(), interp, and NULL. Here is the call graph for this function: ![]() |
|
Allows LIBBN to be dynamically loade to a vanilla tclsh/wish with "load /usr/brlcad/lib/libbn.so". B N _ I N I T The name of this function is specified by TCL. Definition at line 956 of file bn_tcl.c. References bn_tcl_setup(), interp, and TCL_OK. Here is the call graph for this function: ![]() |
|
|
|
|