00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef DONT_USE_COMPAT4_H
00040
00041 #ifndef SEEN_COMPAT4_H
00042 #define SEEN_COMPAT4_H seen
00043
00044 __BEGIN_DECLS
00045
00046
00047 #define GETSTRUCT BU_GETSTRUCT
00048 #define GETUNION BU_GETUNION
00049 #define RT_CKMAG BU_CKMAG
00050 #define RT_TOL_MAGIC BN_TOL_MAGIC
00051 #define RT_CK_TOL BN_CK_TOL
00052 #define RT_VECT_ARE_PARALLEL BN_VECT_ARE_PARALLEL
00053 #define RT_VECT_ARE_PERP BN_VECT_ARE_PERP
00054
00055
00056
00057
00058 #define rt_badmagic bu_badmagic
00059
00060 #define RT_SETJUMP BU_SETJUMP
00061 #define RT_UNSETJUMP BU_UNSETJUMP
00062
00063
00064 #define rt_pi bn_pi
00065 #define rt_twopi bn_twopi
00066 #define rt_halfpi bn_halfpi
00067 #define rt_quarterpi bn_quarterpi
00068 #define rt_invpi bn_invpi
00069 #define rt_inv2pi bn_inv2pi
00070 #define rt_inv4pi bn_inv4pi
00071 #define rt_inv255 bn_inv255
00072
00073 #define rt_degtorad bn_degtorad
00074 #define rt_radtodeg bn_radtodeg
00075
00076
00077 #define histogram bu_hist
00078 #define RT_HISTOGRAM_MAGIC BU_HIST_MAGIC
00079 #define RT_CK_HISTOGRAM BU_CK_HIST
00080 #define RT_HISTOGRAM_TALLY BU_HIST_TALLY
00081 #define rt_hist_free bu_hist_free
00082 #define rt_hist_init bu_hist_init
00083 #define rt_hist_range bu_hist_range
00084 #define rt_hist_pr bu_hist_pr
00085
00086
00087 #define rt_list_len bu_list_len
00088 #define rt_list_reverse bu_list_reverse
00089 #define rt_list bu_list
00090 #define RT_LIST_HEAD_MAGIC BU_LIST_HEAD_MAGIC
00091 #define RT_LIST_NULL BU_LIST_NULL
00092 #define RT_LIST_INSERT BU_LIST_INSERT
00093 #define RT_LIST_APPEND BU_LIST_APPEND
00094 #define RT_LIST_DEQUEUE BU_LIST_DEQUEUE
00095 #define RT_LIST_PUSH BU_LIST_PUSH
00096 #define RT_LIST_POP BU_LIST_POP
00097 #define RT_LIST_INSERT_LIST BU_LIST_INSERT_LIST
00098 #define RT_LIST_APPEND_LIST BU_LIST_APPEND_LIST
00099 #define RT_LIST_IS_EMPTY BU_LIST_IS_EMPTY
00100 #define RT_LIST_NON_EMPTY BU_LIST_NON_EMPTY
00101 #define RT_LIST_NON_EMPTY_P BU_LIST_NON_EMPTY_P
00102 #define RT_LIST_IS_CLEAR BU_LIST_IS_CLEAR
00103 #define RT_LIST_UNINITIALIZED BU_LIST_UNINITIALIZED
00104 #define RT_LIST_INIT BU_LIST_INIT
00105 #define RT_LIST_MAGIC_SET BU_LIST_MAGIC_SET
00106 #define RT_LIST_MAGIC_OK BU_LIST_MAGIC_OK
00107 #define RT_LIST_MAGIC_WRONG BU_LIST_MAGIC_WRONG
00108 #define RT_LIST_LAST BU_LIST_LAST
00109 #define RT_LIST_PREV BU_LIST_PREV
00110 #define RT_LIST_FIRST BU_LIST_FIRST
00111 #define RT_LIST_NEXT BU_LIST_NEXT
00112 #define RT_LIST_IS_HEAD BU_LIST_IS_HEAD
00113 #define RT_LIST_NOT_HEAD BU_LIST_NOT_HEAD
00114 #define RT_CK_LIST_HEAD BU_CK_LIST_HEAD
00115 #define RT_LIST_NEXT_IS_HEAD BU_LIST_NEXT_IS_HEAD
00116 #define RT_LIST_NEXT_NOT_HEAD BU_LIST_NEXT_NOT_HEAD
00117 #define RT_LIST_FOR BU_LIST_FOR
00118 #define RT_LIST_FOR2 BU_LIST_FOR2
00119 #define RT_LIST_WHILE BU_LIST_WHILE
00120 #define RT_LIST_FIRST_MAGIC BU_LIST_FIRST_MAGIC
00121 #define RT_LIST_LAST_MAGIC BU_LIST_LAST_MAGIC
00122 #define RT_LIST_PNEXT BU_LIST_PNEXT
00123 #define RT_LIST_PLAST BU_LIST_PLAST
00124 #define RT_LIST_PNEXT_PNEXT BU_LIST_PNEXT_PNEXT
00125 #define RT_LIST_PNEXT_PLAST BU_LIST_PNEXT_PLAST
00126 #define RT_LIST_PLAST_PNEXT BU_LIST_PLAST_PNEXT
00127 #define RT_LIST_PLAST_PLAST BU_LIST_PLAST_PLAST
00128 #define RT_LIST_PNEXT_CIRC BU_LIST_PNEXT_CIRC
00129 #define RT_LIST_PPREV_CIRC BU_LIST_PPREV_CIRC
00130 #define RT_LIST_PLAST_CIRC BU_LIST_PPREV_CIRC
00131 #define RT_LIST_MAIN_PTR BU_LIST_MAIN_PTR
00132
00133
00134
00135 #define rt_log bu_log
00136 #define rt_add_hook bu_add_hook
00137 #define rt_delete_hook bu_delete_hook
00138 #define rt_putchar bu_putchar
00139 #define rt_log bu_log
00140 #define rt_flog bu_flog
00141
00142
00143 #define rt_identify_magic bu_identify_magic
00144
00145
00146 #define rt_malloc(_cnt,_str) ((char *)bu_malloc(_cnt,_str))
00147 #define rt_free(_ptr,_str) bu_free((genptr_t)(_ptr),_str)
00148 #define rt_realloc(_p,_ct,_str) ((char *)bu_realloc(_p,_ct,_str))
00149 #define rt_calloc(_n,_sz,_str) ((char *)bu_calloc(_n,_sz,_str))
00150 #define rt_prmem bu_prmem
00151 #define rt_strdup bu_strdup
00152 #define rt_byte_roundup bu_malloc_len_roundup
00153 #define rt_ck_malloc_ptr(_p,_s) bu_ck_malloc_ptr((genptr_t)_p,_s)
00154 #define rt_mem_barriercheck bu_mem_barriercheck
00155
00156
00157 #define rt_mapped_file bu_mapped_file
00158 #define rt_open_mapped_file bu_open_mapped_file
00159 #define rt_close_mapped_file bu_close_mapped_file
00160 #define RT_CK_MAPPED_FILE BU_CK_MAPPED_FILE
00161
00162
00163 #define rt_identity bn_mat_identity
00164 #define rt_mat_is_equal bn_mat_is_equal
00165 #define vtoh_move(_d,_s) bn_vtoh_move(_d,_s)
00166 #define htov_move(_d,_s) bn_htov_move(_d,_s)
00167 #define ae_vec(_az,_el,_vec) bn_ae_vec(_az,_el,_vec)
00168 #define eigen2x2(_val1,_val2,_vec1,_vec2,_a,_b,_c) \
00169 bn_eigen2x2(_val1,_val2,_vec1,_vec2,_a,_b,_c)
00170 #define vec_ortho(_d,_s) bn_vec_ortho(_d,_s)
00171 #define vec_perp(_d,_s) bn_vec_perp(_d,_s)
00172
00173 #define mat_degtorad bn_degtorad
00174 #define mat_radtodeg bn_radtodeg
00175 #define mat_identity bn_mat_identity
00176 #define mat_print bn_mat_print
00177 #define mat_atan2 bn_atan2
00178 #define mat_zero MAT_ZERO
00179 #define mat_idn MAT_IDN
00180 #define mat_copy MAT_COPY
00181 #define mat_mul bn_mat_mul
00182 #define mat_mul2 bn_mat_mul2
00183 #define matXvec bn_matXvec
00184 #define mat_inv bn_mat_inv
00185 #define mat_vtoh_move bn_vtoh_move
00186 #define mat_htov_move bn_htov_move
00187 #define mat_trn bn_mat_trn
00188 #define mat_ae bn_mat_ae
00189 #define mat_ae_vec bn_ae_vec
00190 #define mat_aet_vec bn_aet_vec
00191 #define mat_angles bn_mat_angles
00192 #define mat_eigen2x2 bn_eigen2x2
00193 #define mat_vec_perp bn_vec_perp
00194 #define mat_fromto bn_mat_fromto
00195 #define mat_xrot bn_mat_xrot
00196 #define mat_yrot bn_mat_yrot
00197 #define mat_zrot bn_mat_zrot
00198 #define mat_lookat bn_mat_lookat
00199 #define mat_vec_ortho bn_vec_ortho
00200 #define mat_scale_about_pt bn_mat_scale_about_pt
00201 #define mat_xform_about_pt bn_mat_xform_about_pt
00202 #define mat_is_identity bn_mat_is_identity
00203 #define mat_arb_rot bn_mat_arb_rot
00204 #define mat_dup bn_mat_dup
00205 #define mat_is_equal bn_mat_is_equal
00206
00207
00208
00209 #define msr_unif_init bn_unif_init
00210 #define msr_unif_long_fill bn_unif_long_fill
00211 #define msr_unif_double_fill bn_unif_double_fill
00212 #define msr_gauss_init bn_gauss_init
00213 #define msr_gauss_fill bn_gauss_fill
00214 #define msr_unif bn_unif
00215 #define msr_gauss bn_gauss
00216 #define MSR_CK_UNIF BN_CK_UNIF
00217 #define MSR_CK_GAUSS BN_CK_GAUSS
00218 #define MSR_UNIF_LONG BN_UNIF_LONG
00219 #define MSR_UNIF_DOUBLE BN_UNIF_DOUBLE
00220 #define MSR_UNIF_CIRCLE BN_UNIF_CIRCLE
00221 #define MSR_UNIF_SPHERE BN_UNIF_SPHERE
00222 #define MSR_GAUSS_DOUBLE BN_GAUSS_DOUBLE
00223
00224
00225 #define noise_init bn_noise_init
00226 #define noise_perlin bn_noise_perlin
00227 #define noise_vec bn_noise_vec
00228 #define noise_fbm bn_noise_fbm
00229 #define noise_turb bn_noise_turb
00230
00231
00232 #define rt_pri_set bu_nice_set
00233 #define rt_cpuget bu_cpulimit_get
00234 #define rt_cpuset bu_cpulimit_set
00235 #define rt_avail_cpus bu_avail_cpus
00236 #define rt_parallel bu_parallel
00237
00238
00239 #define rt_struct_export bu_struct_export
00240 #define rt_struct_import bu_struct_import
00241 #define rt_struct_put bu_struct_put
00242 #define rt_struct_get bu_struct_get
00243 #define rt_gshort bu_gshort
00244 #define rt_glong bu_glong
00245 #define rt_pshort bu_pshort
00246 #define rt_plong bu_plong
00247 #define rt_struct_buf bu_struct_wrap_buf
00248 #define rt_structparse bu_struct_parse
00249 #define structparse bu_structparse
00250
00251 #define rt_vls_item_print( v, sp, b ) bu_vls_struct_item( v, sp, b, ',' )
00252 #define rt_vls_item_print_nc( v, sp, b ) bu_vls_struct_item( v, sp, b, ' ' )
00253 #define rt_vls_name_print( v, sp, n, b ) \
00254 bu_vls_struct_item_named( v, sp, n, b, ',' )
00255 #define rt_vls_name_print_nc( v, sp, n, b ) \
00256 bu_vls_struct_item_named( v, sp, n, b, ' ' )
00257 #define rt_structprint bu_struct_print
00258 #define rt_vls_structprint bu_vls_struct_print
00259 #if !__STDC__ && !defined(offsetof)
00260 # define offsetof(_t, _m) (int)(&(((_t *)0)->_m))
00261 #endif
00262 #define offsetofarray bu_offsetofarray
00263 #define FUNC_NULL BU_STRUCTPARSE_FUNC_NULL
00264
00265 #define rt_external bu_external
00266 #define RT_EXTERNAL_MAGIC BU_EXTERNAL_MAGIC
00267 #define RT_INIT_EXTERNAL BU_INIT_EXTERNAL
00268 #define RT_CK_EXTERNAL BU_CK_EXTERNAL
00269
00270
00271 #define rb_tree bu_rb_tree
00272 #define RB_TREE_NULL BU_RB_TREE_NULL
00273 #define rb_min bu_rb_min
00274 #define rb_max bu_rb_max
00275 #define rb_pred bu_rb_pred
00276 #define rb_succ bu_rb_succ
00277 #define rb_create bu_rb_create
00278 #define rb_create1 bu_rb_create1
00279 #define rb_delete bu_rb_delete
00280 #define rb_diagnose_tree bu_rb_diagnose_tree
00281 #define rb_extreme bu_rb_extreme
00282 #define rb_insert bu_rb_insert
00283 #define rb_neighbor bu_rb_neighbor
00284 #define rb_search bu_rb_search
00285 #define rb_search1 bu_rb_search1
00286 #define rb_summarize_tree bu_rb_summarize_tree
00287 #define rb_walk bu_rb_walk
00288 #define rb_walk1 bu_rb_walk1
00289
00290
00291 #define rt_dist_pt3_lseg3 bn_dist_pt3_lseg3
00292 #define rt_3pts_collinear bn_3pts_collinear
00293 #define rt_pt3_pt3_equal bn_pt3_pt3_equal
00294 #define rt_dist_pt2_lseg2 bn_dist_pt2_lseg2
00295 #define rt_isect_lseg3_lseg3 bn_isect_lseg3_lseg3
00296 #define rt_isect_line3_line3 bn_isect_line3_line3
00297 #define rt_2line3_colinear bn_2line3_colinear
00298 #define rt_isect_pt2_lseg2 bn_isect_pt2_lseg2
00299 #define rt_isect_line2_lseg2 bn_isect_line2_lseg2
00300 #define rt_isect_lseg2_lseg2 bn_isect_lseg2_lseg2
00301 #define rt_isect_line2_line2 bn_isect_line2_line2
00302 #define rt_dist_line_point bn_dist_line3_pt3
00303 #define rt_dist_pt3_pt3 bn_dist_pt3_pt3
00304 #define rt_3pts_distinct bn_3pts_distinct
00305 #define rt_mk_plane_3pts bn_mk_plane_3pts
00306 #define rt_mkpoint_3planes bn_mkpoint_3planes
00307 #define rt_isect_line3_plane bn_isect_line3_plane
00308 #define rt_isect_2planes bn_isect_2planes
00309 #define rt_isect_2lines bn_isect_2lines
00310 #define rt_isect_line_lseg bn_isect_line_lseg
00311 #define rt_dist_line3_pt3 bn_dist_line3_pt3
00312 #define rt_distsq_line3_pt3 bn_distsq_line3_pt3
00313 #define rt_dist_line_origin bn_dist_line_origin
00314 #define rt_dist_line2_point2 bn_dist_line2_point2
00315 #define rt_distsq_line2_point2 bn_distsq_line2_point2
00316 #define rt_area_of_triangle bn_area_of_triangle
00317 #define rt_isect_pt_lseg bn_isect_pt_lseg
00318 #define rt_dist_pt_lseg bn_dist_pt_lseg
00319 #define rt_rotate_bbox bn_rotate_bbox
00320 #define rt_rotate_plane bn_rotate_plane
00321 #define rt_coplanar bn_coplanar
00322 #define rt_angle_measure bn_angle_measure
00323 #define rt_dist_pt3_along_line3 bn_dist_pt3_along_line3
00324 #define rt_dist_pt2_along_line2 bn_dist_pt2_along_line2
00325 #define rt_between bn_between
00326
00327
00328
00329 #define rt_printb bu_printb
00330
00331
00332 #define nmg_tbl bu_ptbl
00333 #define nmg_ptbl bu_ptbl
00334 #define TBL_INIT BU_PTBL_INIT
00335 #define TBL_INS BU_PTBL_INS
00336 #define TBL_LOC BU_PTBL_LOC
00337 #define TBL_FREE BU_PTBL_FREE
00338 #define TBL_RST BU_PTBL_RST
00339 #define TBL_CAT BU_PTBL_CAT
00340 #define TBL_RM BU_PTBL_RM
00341 #define TBL_INS_UNIQUE BU_PTBL_INS_UNIQUE
00342 #define TBL_ZERO BU_PTBL_ZERO
00343 #define NMG_CK_PTBL BU_CK_PTBL
00344 #define NMG_TBL_BASEADDR BU_PTBL_BASEADDR
00345 #define NMG_TBL_LASTADDR BU_PTBL_LASTADDR
00346 #define NMG_TBL_END BU_PTBL_END
00347 #define NMG_TBL_GET BU_PTBL_GET
00348
00349
00350 #define RT_RAND_TABSIZE BN_RAND_TABSIZE
00351 #define RT_RANDSEED BN_RANDSEED
00352 #define RT_RANDOM BN_RANDOM
00353 #define rt_rand_table bn_rand_table
00354
00355
00356
00357 #define rt_tol bn_tol
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371 #undef RES_INIT
00372 #undef RES_ACQUIRE
00373 #undef RES_RELEASE
00374
00375
00376 #define rt_vls bu_vls
00377 #define RT_VLS_CHECK(_vp) BU_CK_VLS(_vp)
00378 #define RT_VLS_ADDR bu_vls_addr
00379 #define RT_VLS_INIT bu_vls_init
00380 #define rt_vls_init bu_vls_init
00381 #define rt_vls_vlsinit bu_vls_vlsinit
00382 #define rt_vls_addr bu_vls_addr
00383 #define rt_vls_strdup bu_vls_strdup
00384 #define rt_vls_strgrab bu_vls_strgrab
00385 #define rt_vls_extend bu_vls_extend
00386 #define rt_vls_setlen bu_vls_setlen
00387 #define rt_vls_strlen bu_vls_strlen
00388 #define rt_vls_trunc bu_vls_trunc
00389 #define rt_vls_trunc2 bu_vls_trunc2
00390 #define rt_vls_nibble bu_vls_nibble
00391 #define rt_vls_free bu_vls_free
00392 #define rt_vls_vlsfree bu_vls_vlsfree
00393 #define rt_vls_strcpy bu_vls_strcpy
00394 #define rt_vls_strncpy bu_vls_strncpy
00395 #define rt_vls_strcat bu_vls_strcat
00396 #define rt_vls_strncat bu_vls_strncat
00397 #define rt_vls_vlscat bu_vls_vlscat
00398 #define rt_vls_vlscatzap bu_vls_vlscatzap
00399 #define rt_vls_from_argv bu_vls_from_argv
00400 #define rt_vls_fwrite bu_vls_fwrite
00401 #define rt_vls_gets bu_vls_gets
00402 #define rt_vls_putc bu_vls_putc
00403 #define rt_vls_printf bu_vls_printf
00404
00405
00406
00407
00408
00409
00410
00411
00412 #define complex bn_complex_t
00413 #define CxCopy bn_cx_copy
00414 #define CxNeg bn_cx_neg
00415 #define CxReal bn_cx_real
00416 #define CxImag bn_cx_imag
00417 #define CxAdd bn_cx_add
00418 #define CxAmpl bn_cx_ampl
00419 #define CxAmplSq bn_cx_amplsq
00420 #define CxConj bn_cx_conj
00421 #define CxCons bn_cx_cons
00422 #define CxPhas bn_cx_phas
00423 #define CxScal bn_cx_scal
00424 #define CxSub bn_cx_sub
00425 #define CxMul bn_cx_mul
00426 #define CxMul2 bn_cx_mul2
00427 #define CxDiv bn_cx_div
00428 #define CxSqrt( cp ) bn_cx_sqrt( cp, cp )
00429
00430
00431
00432 #define poly bn_poly_t
00433 #define rt_poly_mul(a,b,prod) bn_poly_mul(prod,a,b)
00434 #define rt_poly_scale bn_poly_scale
00435 #define rt_poly_add(a,b,sum) bn_poly_add(sum,a,b)
00436 #define rt_poly_sub(a,b,diff) bn_poly_sub(diff,a,b)
00437 #define rt_poly_synthetic_division(dvdend,dvsor,quo,rem) \
00438 bn_poly_synthetic_division(quo, rem, dvdend, dvsor)
00439 #define rt_poly_quadratic_roots(p,root) bn_poly_quadratic_roots(root,p)
00440 #define rt_poly_cubic_roots(p,root) bn_poly_cubic_roots(root,p)
00441 #define rt_poly_quartic_roots(p,root) bn_poly_quartic_roots(root,p)
00442 #define rt_pr_poly bn_pr_poly
00443 #define rt_pr_roots bn_pr_roots
00444
00445
00446
00447 #define rt_units_conversion bu_units_conversion
00448 #define rt_units_string bu_units_string
00449 #define rt_mm_value bu_mm_value
00450
00451
00452 #define RT_VLIST_CHUNK BN_VLIST_CHUNK
00453 #define rt_vlist bn_vlist
00454 #define RT_VLIST_NULL BN_VLIST_NULL
00455 #define RT_VLIST_MAGIC BN_VLIST_MAGIC
00456 #define RT_CK_VLIST(_p) BN_CK_VLIST(_p)
00457 #define RT_VLIST_LINE_MOVE BN_VLIST_LINE_MOVE
00458 #define RT_VLIST_LINE_DRAW BN_VLIST_LINE_DRAW
00459 #define RT_VLIST_POLY_START BN_VLIST_POLY_START
00460 #define RT_VLIST_POLY_MOVE BN_VLIST_POLY_MOVE
00461 #define RT_VLIST_POLY_DRAW BN_VLIST_POLY_DRAW
00462 #define RT_VLIST_POLY_END BN_VLIST_POLY_END
00463 #define RT_VLIST_POLY_VERTNORM BN_VLIST_POLY_VERTNORM
00464 #define rt_vlblock bn_vlblock
00465 #define RT_VLBLOCK_MAGIC BN_VLBLOCK_MAGIC
00466 #define RT_CK_VLBLOCK(_p) BN_CK_VLBLOCK(_p)
00467
00468
00469 #define rt_vlist_3string( vhead, string, origin, rot, scale ) \
00470 bn_vlist_3string( vhead, &rt_g.rtg_vlfree, string, origin, rot, scale )
00471 #define rt_vlist_2string( vhead, string, x, y, scale, theta ) \
00472 bn_vlist_2string( vhead, &rt_g.rtg_vlfree, string, x, y, scale, theta )
00473
00474 __END_DECLS
00475
00476 #endif
00477
00478 #endif
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489