BRL-CAD

Tcl interfaces to all the LIBBN math routines. More...

#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "tcl.h"
#include "bu/str.h"
#include "vmath.h"
#include "bn/mat.h"
#include "bn/noise.h"
#include "bn/plane_struct.h"
#include "bn/plane_calc.h"
#include "bn/qmath.h"
#include "bn/rand.h"
#include "bn/bn_tcl.h"
#include "bn/tcl_encode.h"
Include dependency graph for tcl.c:

Go to the source code of this file.

Data Structures

struct  math_func_link
 

Macros

#define MATH_FUNC_VOID_CAST(_func)   ((void (*)(void))_func)
 
#define NOISE_FBM   0
 
#define NOISE_TURB   1
 
#define COV186_UNUSED_CODE   0
 
#define COV186_UNUSED_CODE   0
 

Functions

int bn_decode_mat (fastf_t *mat, const char *str)
 
int bn_decode_quat (fastf_t *quat, const char *str)
 
int bn_decode_vect (fastf_t *vec, 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. More...
 
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] More...
 
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)
 Tcl interfaces to all the LIBBN math routines. More...
 
int Bn_Init (Tcl_Interp *interp)
 Allows LIBBN to be dynamically loaded to a vanilla tclsh/wish with "load /usr/brlcad/lib/libbn.so". More...
 

Detailed Description

Tcl interfaces to all the LIBBN math routines.

Definition in file tcl.c.

Macro Definition Documentation

#define NOISE_FBM   0

Referenced by bn_cmd_noise_slice().

#define NOISE_TURB   1

Referenced by bn_cmd_noise_slice().

#define COV186_UNUSED_CODE   0
#define COV186_UNUSED_CODE   0