prep.c File Reference

#include "common.h"
#include <stddef.h>
#include <stdio.h>
#include <math.h>
#include <strings.h>
#include "machine.h"
#include "bu.h"
#include "vmath.h"
#include "bn.h"
#include "raytrace.h"
#include "plot3.h"
#include "./debug.h"

Include dependency graph for prep.c:

Go to the source code of this file.

Functions

void rt_ck (struct rt_i *rtip)
HIDDEN void rt_solid_bitfinder (register union tree *treep, struct region *regp, struct resource *resp)
rt_irt_new_rti (struct db_i *dbip)
void rt_free_rti (struct rt_i *rtip)
void rt_prep_parallel (register struct rt_i *rtip, int ncpu)
void rt_prep (register struct rt_i *rtip)
void rt_plot_all_bboxes (FILE *fp, struct rt_i *rtip)
void rt_plot_all_solids (FILE *fp, struct rt_i *rtip, struct resource *resp)
int rt_vlist_solid (struct bu_list *vhead, struct rt_i *rtip, const struct soltab *stp, struct resource *resp)
int rt_plot_solid (register FILE *fp, struct rt_i *rtip, const struct soltab *stp, struct resource *resp)
void rt_init_resource (struct resource *resp, int cpu_num, struct rt_i *rtip)
void rt_clean_resource (struct rt_i *rtip, struct resource *resp)
bu_bitvget_solidbitv (long nbits, struct resource *resp)
void rt_clean (register struct rt_i *rtip)
int rt_del_regtree (struct rt_i *rtip, register struct region *delregp, struct resource *resp)
void rt_ck (register struct rt_i *rtip)
int rt_load_attrs (struct rt_i *rtip, char **attrs)
int rt_find_paths (struct db_i *dbip, struct directory *start, struct directory *end, struct bu_ptbl *paths, struct resource *resp)
int obj_in_path (const char *path, const char *obj)
int rt_unprep (struct rt_i *rtip, struct rt_reprep_obj_list *objs, struct resource *resp)
int rt_reprep (struct rt_i *rtip, struct rt_reprep_obj_list *objs, struct resource *resp)

Variables

resource rt_uniresource
 default. Defined in librt/shoot.c


Detailed Description

Manage one-time preparations to be done before actual ray-tracing can commence.

Author - Michael John Muuss

Source - SECAD/VLD Computing Consortium, Bldg 394 The U. S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005

Definition in file prep.c.


Function Documentation

void rt_ck struct rt_i rtip  ) 
 

HIDDEN void rt_solid_bitfinder register union tree treep,
struct region regp,
struct resource resp
 

Definition at line 1044 of file prep.c.

References bu_log(), bu_ptbl_ins(), OP_INTERSECT, OP_NOP, OP_SOLID, OP_SUBTRACT, OP_UNION, resource::re_boolstack, RT_CK_REGION, RT_CK_RESOURCE, RT_CK_SOLTAB, RT_CK_TREE, rt_grow_boolstack(), soltab::st_regions, tree::tree_node::tb_left, tree::tree_node::tb_right, tree::tr_b, and TREE_NULL.

Referenced by rt_prep_parallel().

Here is the call graph for this function:

void rt_prep_parallel register struct rt_i rtip,
int  ncpu
 

Definition at line 221 of file prep.c.

References BITV_SHIFT, BU_ASSERT_PTR, bu_calloc(), BU_LIST_FOR, bu_log(), bu_pr_ptbl(), BU_PTBL_GET, bu_semaphore_acquire(), bu_semaphore_release(), db_ck_tree(), DEBUG_REGIONS, ID_MAX_SOLID, INFINITY, MAGNITUDE, region::reg_bit, region::reg_treetop, REGION_NULL, rt_bomb(), RT_CK_RESOURCE, RT_CK_RTI, RT_G_DEBUG, rt_optim_tree(), rt_pr_region(), rt_pr_soltab(), RT_SEM_RESULTS, rt_solid_bitfinder(), rt_uniresource, RT_VISIT_ALL_SOLTABS_END, RT_VISIT_ALL_SOLTABS_START, SOLTAB_NULL, soltab::st_bit, soltab::st_id, soltab::st_regions, soltab::st_rtip, VSETALL, VSUB2, X, Y, and Z.

Here is the call graph for this function:

void rt_prep register struct rt_i rtip  ) 
 

Definition at line 450 of file prep.c.

References RT_CK_RTI, and rt_prep_parallel().

Here is the call graph for this function:

int rt_vlist_solid struct bu_list vhead,
struct rt_i rtip,
const struct soltab stp,
struct resource resp
 

Definition at line 517 of file prep.c.

References bu_log(), RT_CK_DB_INTERNAL, rt_db_free_internal(), rt_db_get_internal(), rt_i::rti_dbip, rt_i::rti_tol, rt_i::rti_ttol, soltab::st_dp, and soltab::st_matp.

Referenced by rt_plot_solid().

Here is the call graph for this function:

int rt_plot_solid register FILE *  fp,
struct rt_i rtip,
const struct soltab stp,
struct resource resp
 

Definition at line 559 of file prep.c.

References BU_LIST_INIT, BU_LIST_IS_EMPTY, bu_log(), BU_PTBL_GET, mater_info::ma_color, pl_color(), region::reg_mater, REGION_NULL, RT_CK_RTI, RT_CK_SOLTAB, RT_FREE_VLIST, rt_vlist_solid(), rt_vlist_to_uplot(), and soltab::st_regions.

Here is the call graph for this function:

void rt_clean register struct rt_i rtip  ) 
 

Definition at line 837 of file prep.c.

References region::attr_values, bu_free(), BU_LIST_DEQUEUE, BU_LIST_FOR, BU_LIST_WHILE, bu_mro_free(), db_ck_tree(), db_free_tree(), head, region::l, mater_info::ma_shader, NULL, region::reg_mater, region::reg_name, region::reg_treetop, RT_CHECK_SOLTAB, RT_CK_REGION, RT_CK_RTI, RT_DBNHASH, rt_free_soltab(), and rt_uniresource.

Here is the call graph for this function:

int rt_del_regtree struct rt_i rtip,
register struct region delregp,
struct resource resp
 

Definition at line 1011 of file prep.c.

References bu_free(), BU_LIST_DEQUEUE, bu_log(), bu_mro_free(), db_free_tree(), DEBUG_REGIONS, RT_CK_RESOURCE, RT_G_DEBUG, and TREE_NULL.

Here is the call graph for this function:

void rt_ck register struct rt_i rtip  ) 
 

Definition at line 1098 of file prep.c.

References BU_LIST_FOR, db_ck_directory(), db_ck_tree(), region::reg_treetop, RT_CK_DBI, RT_CK_REGION, RT_CK_RTI, RT_CK_SOLTAB, RT_VISIT_ALL_SOLTABS_END, and RT_VISIT_ALL_SOLTABS_START.

Here is the call graph for this function:

int obj_in_path const char *  path,
const char *  obj
 

Definition at line 1331 of file prep.c.

References ptr.


Generated on Mon Sep 18 01:25:09 2006 for BRL-CAD by  doxygen 1.4.6