btg.c File Reference
#include "common.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "bot.h"
#include "tie.h"
#include "btg.h"
#include "tie.c"
#include "tie_kdtree.c"
Include dependency graph for btg.c:

Go to the source code of this file.

Data Structures

struct  hitdata_s


#define TIE_PRECISION   1
#define MAXHITS   128


int rt_bot_makesegs (struct hit *hits, size_t nhits, struct soltab *stp, struct xray *rp, struct application *ap, struct seg *seghead, struct rt_piecestate *psp)
void * bottie_allocn_double (unsigned long long ntri)
void bottie_push_double (void *vtie, TIE_3 **tri, unsigned int ntri, void *u, unsigned int pstride)
int bottie_prep_double (struct soltab *stp, struct rt_bot_internal *bot_ip, struct rt_i *rtip)
int bottie_shot_double (struct soltab *stp, struct xray *rp, struct application *ap, struct seg *seghead)
void bottie_free_double (void *vtie)


int tie_check_degenerate = 0
fastf_t TIE_PREC = 0.1

Detailed Description

the bot/tie glue.

Definition in file btg.c.

Macro Definition Documentation

#define TIE_PRECISION   1

Definition at line 26 of file btg.c.

#define MAXHITS   128

Definition at line 136 of file btg.c.

Function Documentation

void* bottie_allocn_double ( unsigned long long  ntri)

Definition at line 46 of file btg.c.

References BU_ALLOC.

Referenced by bottie_prep_double().

void bottie_push_double ( void *  vtie,
TIE_3 **  tri,
unsigned int  ntri,
void *  u,
unsigned int  pstride 

Definition at line 55 of file btg.c.

int bottie_prep_double ( struct soltab stp,
struct rt_bot_internal *  bot_ip,
struct rt_i rtip 

Definition at line 63 of file btg.c.

References bottie_allocn_double(), bu_bitv_dup(), BU_BITV_NULL, bu_calloc(), bu_free(), BU_GET, bu_malloc(), soltab::st_aradius, soltab::st_bradius, soltab::st_center, soltab::st_max, soltab::st_min, soltab::st_specific, tie_free(), and OSL::Strings::v.

Referenced by rt_bot_prep().

Here is the call graph for this function:

int bottie_shot_double ( struct soltab stp,
struct xray rp,
struct application ap,
struct seg seghead 

Definition at line 195 of file btg.c.

References application::a_ray, hit::hit_dist, hit::hit_surfno, hitdata_s::hits, hitdata_s::nhits, xray::r_dir, xray::r_pt, hitdata_s::rp, rt_bot_makesegs(), and soltab::st_specific.

Referenced by rt_bot_shot().

Here is the call graph for this function:

void bottie_free_double ( void *  vtie)

Definition at line 236 of file btg.c.

References tie_free().

Referenced by rt_bot_free().

Here is the call graph for this function:

Variable Documentation

int tie_check_degenerate = 0

Definition at line 40 of file btg.c.

Referenced by tie_push().

fastf_t TIE_PREC = 0.1

Definition at line 41 of file btg.c.

Referenced by tie_kdtree_prep(), and tie_work().