Compare commits

...
423 Commits
Author SHA1 Message Date
Christopher Sean Morrison 9b9706c046 remove mysterious 'help' tag from 7.8, no apparent purpose and certainly no need to keep it around now (svn branch delete)
svn:revision:46338
svn:tag:help
svn:account:brlcad
2011-08-23 15:56:43 +00:00
cvs-fast-export cd1eccf261 Synthetic commit for incomplete tag help
svn:revision:26349
cvs:account:cvs-fast-export
2006-03-06 08:22:04 +00:00
Christopher Sean Morrison 6f5a56654d restore functionality to tests and benchmark
svn:revision:26348
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 08:22:04 +00:00
Christopher Sean Morrison 691258bb4e short intro documentation for command line tools including a separate one for mged. generally want a document less than 20 pages but encompassing.
svn:revision:26347
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 08:11:05 +00:00
Christopher Sean Morrison c48b3392c5 might as well call them by the more tame name of reference sheets
svn:revision:26346
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 08:02:54 +00:00
Christopher Sean Morrison 26a713f25c cheat sheet of useful BRL-CAD command-line tools grouped categorically
svn:revision:26345
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 07:59:06 +00:00
Christopher Sean Morrison c399f6f2dd cheat sheet of common mged commands, keybindings, gui elements and scripting facilities
svn:revision:26344
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 07:58:04 +00:00
Christopher Sean Morrison 538c43d971 support to the raytracers for multiple image file formats, recognizing an option and/or the file suffix of the -o filename.
svn:revision:26343
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 06:34:07 +00:00
Christopher Sean Morrison 7cad134efe libfb + font rendering (perhaps through libbn's plot interface) for a posix terminal.
svn:revision:26342
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 06:28:47 +00:00
Christopher Sean Morrison 639c291feb gpgpu for enhanced performance boolweave sorting
svn:revision:26341
cvs:account:brlcad
cvs:branch:trunk
2006-03-06 06:24:53 +00:00
Christopher Sean Morrison 6718bccc5a delint the socklent
svn:revision:26340
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 10:37:29 +00:00
Christopher Sean Morrison c945b59eb1 unbreak lgt, #endif left in the wrong place. nix the TRUE/FALSE stuff while we're in here too
svn:revision:26339
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 10:33:11 +00:00
Christopher Sean Morrison 46d7ceb698 need string.h for memcpy
svn:revision:26338
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 10:24:45 +00:00
Christopher Sean Morrison 54f70f4fa6 unsigned long image lengths, quell warnings when passing to sizing funcs
svn:revision:26337
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 10:24:36 +00:00
Christopher Sean Morrison 475cd9bbe0 stdlib.h and exit()
svn:revision:26336
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 10:08:41 +00:00
Christopher Sean Morrison 13c898a8a9 stdlib.h warning quelling
svn:revision:26335
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 09:10:29 +00:00
Christopher Sean Morrison b1756d2376 stdlib.h warning quelling
svn:revision:26334
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 08:34:18 +00:00
Christopher Sean Morrison 8dacd45c6a stdlib.h warning quelling, conversions to bu_bomb instead of aborting
svn:revision:26333
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 08:20:11 +00:00
Christopher Sean Morrison 3a49cd0155 no need to test for null, libbu memory management guarantees non-null -- include stdlib.h anyways
svn:revision:26332
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:53:29 +00:00
Christopher Sean Morrison 13bee91214 bomb instead of exiting while processing the vertex nodes
svn:revision:26331
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:50:00 +00:00
Christopher Sean Morrison 1650851faa common file size is unsigned
svn:revision:26330
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:44:11 +00:00
Christopher Sean Morrison 58a6df3845 quell warnings, need stdlib.h for exit routines
svn:revision:26329
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:42:49 +00:00
Christopher Sean Morrison 6c9028ec75 stdlib.h for exit()
svn:revision:26328
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:25:13 +00:00
Christopher Sean Morrison c55ec0068a include stdlib.h anyways, but change the exit to a bu_bomb
svn:revision:26327
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:19:37 +00:00
Christopher Sean Morrison d541fd5eb6 need stdlib.h for exit(), flush streams before abort.
svn:revision:26326
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:17:12 +00:00
Christopher Sean Morrison 2e9ae14380 need stdlib.h for exit()
svn:revision:26325
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:09:41 +00:00
Christopher Sean Morrison c7eb2615ad include stdlib.h, quell warnings in libutahrle and elsewhere
svn:revision:26324
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 07:01:57 +00:00
Christopher Sean Morrison bc7e303642 revert the clipping plane modifications for now until they can be tested better
svn:revision:26323
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 06:25:08 +00:00
Christopher Sean Morrison dd74fe49a5 quell warnings, missing stdlib.h, calls to exit with a negative, ws.
svn:revision:26322
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 05:52:23 +00:00
Christopher Sean Morrison deda9d94d6 added manpage for benchmark
svn:revision:26321
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 05:23:43 +00:00
Christopher Sean Morrison 2a9365de8c jra fixed g-dxf compatibility export issue
svn:revision:26320
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 05:23:06 +00:00
Christopher Sean Morrison 0ce090b8c7 a variety of warning quellings, missing stdlib, calls to exit with a negative, ws.
svn:revision:26319
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 05:22:22 +00:00
Christopher Sean Morrison 81b8d9397a add a comment about adding the fourth vertex for 3DFACES, massive ws cleanup/consistency
svn:revision:26318
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 05:04:55 +00:00
Christopher Sean Morrison d69ba3a1f8 tried to move the PATH modifying block to after Tcl is initialized, but it still seems to be causing problems for people compiling on ubuntu for some unknown reason. disable the block for now until it can be investigated more fully, maybe have to resort to a configure test.
svn:revision:26317
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 04:42:42 +00:00
Christopher Sean Morrison 074fedb2f8 install and provide the new benchmark manpage
svn:revision:26316
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 04:29:25 +00:00
Christopher Sean Morrison e7387046a4 initial manual page, pulling content from the existing script contents and word-smithing some clean-up
svn:revision:26315
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 04:27:22 +00:00
Christopher Sean Morrison 0167440081 doesn't test the compiler, tests a system
svn:revision:26314
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 04:08:20 +00:00
Christopher Sean Morrison a55ea8514b wrote a manpage for the benchmark tool. need to add the alternates to bu_getprogname, separate into new file too.
svn:revision:26313
cvs:account:brlcad
cvs:branch:trunk
2006-02-27 04:00:33 +00:00
Christopher Sean Morrison dc7d11e87b write an introduction to brl-cad document that overviews the primary tools and how they can be used together.
svn:revision:26312
cvs:account:brlcad
cvs:branch:trunk
2006-02-26 16:59:42 +00:00
Christopher Sean Morrison b76c2bebe5 test out float-equal
svn:revision:26311
cvs:account:brlcad
cvs:branch:trunk
2006-02-25 17:43:09 +00:00
John Anderson 4b808deab3 now always outputs 4 vertices per 3DFACE
svn:revision:26310
cvs:account:johnranderson
cvs:branch:trunk
2006-02-25 05:32:12 +00:00
Daniel Rossberg dfe5b8935c allocate memory before RT_APPLICATION_INIT
svn:revision:26309
cvs:account:d_rossberg
cvs:branch:trunk
2006-02-24 12:24:18 +00:00
Christopher Sean Morrison 002b3fd5f6 wavelet isn't working correctly on a simple image decomposition and reconstruction
svn:revision:26308
cvs:account:brlcad
cvs:branch:trunk
2006-02-24 01:19:23 +00:00
Christopher Sean Morrison 51d614f7f9 refer to the new src/README file for entries not listed in HACKING
svn:revision:26307
cvs:account:brlcad
cvs:branch:trunk
2006-02-21 20:29:34 +00:00
Christopher Sean Morrison 38dac5d1d8 include the README in the dist
svn:revision:26306
cvs:account:brlcad
cvs:branch:trunk
2006-02-21 20:28:58 +00:00
Christopher Sean Morrison ce58b1bcd0 initial README file that describes what is in each of the various directories in here
svn:revision:26305
cvs:account:brlcad
cvs:branch:trunk
2006-02-21 20:27:35 +00:00
Christopher Sean Morrison 801e44a227 libbu memory management
svn:revision:26304
cvs:account:brlcad
cvs:branch:trunk
2006-02-21 01:37:57 +00:00
Robert Parker 81de85dc4b Update the debug version's preprocessor definitions.
svn:revision:26303
cvs:account:bob1961
cvs:branch:trunk
2006-02-20 13:52:30 +00:00
Robert Parker 7c62595491 Removed declaration of dgo_eraseobjall_callback() and dgo_notify().
svn:revision:26302
cvs:account:bob1961
cvs:branch:trunk
2006-02-20 12:55:57 +00:00
Robert Parker 220a510a26 Flesh out parameter list for the declaration of dgo_eraseobjall_callback() and dgo_notify(). Declare dgo_notifyWdb().
svn:revision:26301
cvs:account:bob1961
cvs:branch:trunk
2006-02-20 12:52:01 +00:00
Robert Parker 83f4e494a0 Added missing parameter to dgo_eraseobjall_callback(). Added dgo_notifyWdb().
svn:revision:26300
cvs:account:bob1961
cvs:branch:trunk
2006-02-20 12:45:50 +00:00
Robert Parker 0cad0a2e4d Modified wdb_killtree_callback()'s call to dgo_eraseobjall_callback (i.e. parameters were out of order). Modified wdb_killtree_cmd() to call dgo_notifyWdb() to reduce the number of times observers are notified.
svn:revision:26299
cvs:account:bob1961
cvs:branch:trunk
2006-02-20 12:42:03 +00:00
Christopher Sean Morrison 9066c00d3b add support for '-' as the input file to designate stdin, use libbu memory management, reorder functions, and ws.
svn:revision:26298
cvs:account:brlcad
cvs:branch:trunk
2006-02-19 03:48:27 +00:00
Christopher Sean Morrison a422f043dc add support for .vim files; also manual page comment character to an escaped quote
svn:revision:26297
cvs:account:brlcad
cvs:branch:trunk
2006-02-18 23:37:27 +00:00
Christopher Sean Morrison d4d928b067 geometry viewing commands/visualizations of exploded levels. mulled over this years ago, but davisson revitalized some interest/discussion.
svn:revision:26296
cvs:account:brlcad
cvs:branch:trunk
2006-02-15 22:17:21 +00:00
Christopher Sean Morrison 35aa9e061a don't attempt to call do_titles() with an overlay_vls that hasn't been initialized. this 'also' fixes sf bug 1326045 that was fixed by another edit as well
svn:revision:26295
cvs:account:brlcad
cvs:branch:trunk
2006-02-14 20:28:17 +00:00
Christopher Sean Morrison f38af1f790 mild sanity check, even if the directory pointer is valid, make sure the name is too before printfing
svn:revision:26294
cvs:account:brlcad
cvs:branch:trunk
2006-02-14 20:23:07 +00:00
Robert Parker 30e75bc5ce Check-in for Doug Howard. Added a -sortmode option.
svn:revision:26293
cvs:account:bob1961
cvs:branch:trunk
2006-02-14 18:01:04 +00:00
Justin Shumaker f630b607e8 ADRT compiles happily again.
svn:revision:26292
cvs:account:twingy
cvs:branch:trunk
2006-02-10 15:12:36 +00:00
Christopher Sean Morrison 5d9843401c smoother sketch primitive spline drawing
svn:revision:26291
cvs:account:brlcad
cvs:branch:trunk
2006-02-10 05:52:57 +00:00
Christopher Sean Morrison 9c646a094e clean-up, ws, etc.
svn:revision:26290
cvs:account:brlcad
cvs:branch:trunk
2006-02-10 05:50:51 +00:00
Christopher Sean Morrison 1824713e63 smooth out the spline drawing by drawing 500 segments instead of just 50. no more chunkiness.
svn:revision:26289
cvs:account:brlcad
cvs:branch:trunk
2006-02-10 05:35:27 +00:00
Christopher Sean Morrison e300882496 query_ray can't find nirt if not installed
svn:revision:26288
cvs:account:brlcad
cvs:branch:trunk
2006-02-09 05:30:12 +00:00
Christopher Sean Morrison 642486ef5b fbed is looking for something in brlcad_data vfont path
svn:revision:26287
cvs:account:brlcad
cvs:branch:trunk
2006-02-08 23:40:41 +00:00
Lee Butler 1df6e12d7b better description of dbbinary based upon user feedback.
svn:revision:26286
cvs:account:lbutler
cvs:branch:trunk
2006-02-08 21:35:59 +00:00
Christopher Sean Morrison 11d5145f90 comment on how compiling on 10.2 requires additional effort due to the busted libtool script
svn:revision:26285
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 15:57:26 +00:00
Christopher Sean Morrison a3a5769f95 aix Xutil.h header uses Bool #define which is provided by Xlib.h, which Xutil.h doesn't include for you. so we need to include Xlib.h first.
svn:revision:26284
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 06:25:05 +00:00
Christopher Sean Morrison 6079530be5 ignore tpkg
svn:revision:26283
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 06:19:25 +00:00
Christopher Sean Morrison 2df0a11551 avoid 'y1' since AIX math.h header defines a y1()
svn:revision:26282
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 06:16:56 +00:00
Christopher Sean Morrison 9596d6422d separate out libs to one-per-line, progress once again towards making the librtms convenience library non-static-only to avoid libtool bugs on various platforms. it is noted that the version of libtool that ships with mac os x 10.2 will not correctly function here, as it ends up adding librtms multiple times as a static library (regardless of -static) resulting in muliply defined symbol errors.
svn:revision:26281
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 06:12:19 +00:00
Christopher Sean Morrison b246b64553 OS X 10.2 doesn't have socklen_t so instead of requiring common.h, just leave it as an int and let the warnings slide for now (again?) if there are any.
svn:revision:26280
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 06:04:32 +00:00
Christopher Sean Morrison a0df49bc3c protect against jmpbuf define in IBM SP4 headers
svn:revision:26279
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 00:53:58 +00:00
Christopher Sean Morrison 3b9ba43c30 prevent several g-nmg segfaults
svn:revision:26278
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 00:12:22 +00:00
Christopher Sean Morrison 2c7bda3202 if the shader is null, prevent a crash on strtok'ing it
svn:revision:26277
cvs:account:brlcad
cvs:branch:trunk
2006-02-07 00:10:32 +00:00
Lee Butler 71b8aec5e9 formatting of the options, and expounding a little to (hopefully) improve clarity.
svn:revision:26276
cvs:account:lbutler
cvs:branch:trunk
2006-02-06 23:15:48 +00:00
Christopher Sean Morrison dad483cb74 ws
svn:revision:26275
cvs:account:brlcad
cvs:branch:trunk
2006-02-06 20:44:40 +00:00
Christopher Sean Morrison 89dd6f2536 output raytrace scripts using the .rt suffix convention, fix the pixdiff stderr so that it doesn't append, overwrites. fix the tr to handle multiple lines anyways.
svn:revision:26274
cvs:account:brlcad
cvs:branch:trunk
2006-02-06 20:09:57 +00:00
Lee Butler 40c480097c reformatted page so that options are called out in a more readable fashion.
svn:revision:26273
cvs:account:lbutler
cvs:branch:trunk
2006-02-06 17:52:24 +00:00
Christopher Sean Morrison 9ed71cb267 libtool apparently cannot resolve the dependency on libpkg with the library listed with a full path so provide it a local-dir dependency
svn:revision:26272
cvs:account:brlcad
cvs:branch:trunk
2006-02-06 15:56:46 +00:00
Christopher Sean Morrison 2a91a85f3b output to shaders.log, not mged_shaders.log
svn:revision:26271
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 19:45:30 +00:00
Christopher Sean Morrison 44e711f776 fixed read bug in giftorle
svn:revision:26270
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 19:36:42 +00:00
Christopher Sean Morrison 8a7caa0a0a calling a FILE* an fd doesn't make it one. don't try to read() it either, get the read fd from the fd file pointer
svn:revision:26269
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 19:35:53 +00:00
Christopher Sean Morrison afaec354e4 need unistd.h for read()
svn:revision:26268
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 19:16:33 +00:00
Christopher Sean Morrison c6d93335e4 need stdlib.h for malloc/free
svn:revision:26267
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 17:47:59 +00:00
Christopher Sean Morrison ceb33f679a convert to libbu memory management
svn:revision:26266
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 17:41:25 +00:00
Christopher Sean Morrison c6f5d5985f need stdlib for free(), change to libbu memory management in other places
svn:revision:26265
cvs:account:brlcad
cvs:branch:trunk
2006-02-05 17:31:41 +00:00
Christopher Sean Morrison f072dc9588 fixed multiply referenced object illumination bug (sf bug 1218812) where mged fails to properly track the muliply referenced objects causing a bad directory list, causing a crash. the reported crash is fixed though multiply referenced objects (in a single combination) are still problematic. also fixed a bug in the nmg code where it was crashing while freeing an nmg object.
svn:revision:26264
cvs:account:brlcad
cvs:branch:trunk
2006-02-04 16:13:30 +00:00
Christopher Sean Morrison b9deebbe95 prevent crashing if we're unable to print the title of an illuminated path. this fixes sf bug 1218812 reported by clock3.
svn:revision:26263
cvs:account:brlcad
cvs:branch:trunk
2006-02-04 16:08:37 +00:00
Christopher Sean Morrison f8a5c8ba6e ws indent
svn:revision:26262
cvs:account:brlcad
cvs:branch:trunk
2006-02-04 15:38:55 +00:00
Christopher Sean Morrison ad478aff91 prevent crashing in nmg_kvu() when the vertex use structure has a null parent and/or null up pointers for whatever reason. user reported crash on the *vu->up.magic_p -- this fixes that crash.
svn:revision:26261
cvs:account:brlcad
cvs:branch:trunk
2006-02-04 15:31:14 +00:00
Christopher Sean Morrison de121f8bea cleanup, doxygenify
svn:revision:26260
cvs:account:brlcad
cvs:branch:trunk
2006-02-04 01:01:52 +00:00
Christopher Sean Morrison 3f03e5e5f7 improve the socklen_t check, need to look in sys/socket.h as well as sys/types.h for the type. still fallback to int.
svn:revision:26259
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 17:56:51 +00:00
Christopher Sean Morrison d7ac0c82f7 lseek's use of off_t requires sys/types.h
svn:revision:26258
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 17:44:15 +00:00
Christopher Sean Morrison 31baa5c460 look for lseek function
svn:revision:26257
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 17:40:34 +00:00
Christopher Sean Morrison ebd274c060 use bu_getprogname/bu_setprogname instead of bu_argv0
svn:revision:26256
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 02:07:53 +00:00
Christopher Sean Morrison 1364396e53 er, bu_argv0() was declared twice. remove it.
svn:revision:26255
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 02:07:34 +00:00
Christopher Sean Morrison bad3efe074 bu_argv0 was replaced with bu_setprogname and bu_getprogname rather quickly so no need to deprecate it. just remove.
svn:revision:26254
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 02:02:05 +00:00
Christopher Sean Morrison ccf33e184a make bu_argv0() static, it shouldn't be called by programs any longer. instead, programs should use bu_getprogname() and bu_setprogname() to mimic the stdlib interface functions of similar name. if the stdlib interface routines are available, they'll get used.
svn:revision:26253
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 01:49:42 +00:00
Christopher Sean Morrison dd0f81652e check for getprogname and setprogname functions for libbu
svn:revision:26252
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 01:47:21 +00:00
Christopher Sean Morrison c3ddbe646e fallback to int instead of to size_t for the socklen_t check
svn:revision:26251
cvs:account:brlcad
cvs:branch:trunk
2006-02-03 01:45:27 +00:00
Christopher Sean Morrison a599101db1 fix build issues on mac os x 10.2. there's no socklen_t type so pretend it's size_t. old version of autoconf doesn't do anything with the arguments to AC_C_BIGENDIAN, so just check the result and define NATURAL_IEEE/REVERSE_IEEE conditionally.
svn:revision:26250
cvs:account:brlcad
cvs:branch:trunk
2006-02-02 21:48:29 +00:00
Christopher Sean Morrison bd5a4d27f7 make g_transfer a noinst program and a sample source application
svn:revision:26249
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 03:20:38 +00:00
Christopher Sean Morrison 3bb91d7887 the archer headers are now fixed, reflecting the correct legal header that bob annotated in his commit log message to src/archer/archer and as the COPYING file requires of contributions by devs.
svn:revision:26248
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 02:10:25 +00:00
Christopher Sean Morrison 55b73f9fa6 to quote Bob's commit to src/archer/archer "All of archer including the tclscripts is assigned to u.s. government and should be under the LGPL" so add the boilerplate legal header. the COPYING file requires this regardless for all commits whether implicit or explicit. also add the boilerplate variables footer while we're at it.
svn:revision:26247
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 02:08:24 +00:00
Christopher Sean Morrison 7f4b7ff298 legal header changed from Library to Lesser to reflect current 'official' name of the license
svn:revision:26246
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 02:05:59 +00:00
Christopher Sean Morrison 5950563d19 title
svn:revision:26245
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 02:04:45 +00:00
Christopher Sean Morrison cd58a2cb8c footer
svn:revision:26244
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 02:04:38 +00:00
Christopher Sean Morrison a2835d1592 to quote Bob's commit to src/archer/archer "All of archer including the tclscripts is assigned to u.s. government and should be under the LGPL" so add the boilerplate legal header and remove the survice claim. the COPYING file requires this as well. also add the boilerplate variables footer while we're at it.
svn:revision:26243
cvs:account:brlcad
cvs:branch:trunk
2006-01-31 00:50:52 +00:00
Christopher Sean Morrison ae36872371 add command line help options and manpage to 'benchmark' tool
svn:revision:26242
cvs:account:brlcad
cvs:branch:trunk
2006-01-30 23:47:56 +00:00
Christopher Sean Morrison a64f80c835 new tpkg ttcp-style example application using libpkg. tpkg is an example file data transfer program, written in a ttcp style, sending a file's data from a client to a server using libpkg for the network communication. the example sample application is installed for developer reference.
svn:revision:26241
cvs:account:brlcad
cvs:branch:trunk
2006-01-30 23:05:11 +00:00
Christopher Sean Morrison 6be74cd108 initial add of 'tpkg', an example file data transfer program. the program is written in a ttcp style, sending a file's data from a client to a server using libpkg for the network communication.
svn:revision:26240
cvs:account:brlcad
cvs:branch:trunk
2006-01-30 23:02:07 +00:00
Christopher Sean Morrison 193ca4d10e s/exp/jove_exp/ to avoid conflicting with exp() in math.h
svn:revision:26239
cvs:account:brlcad
cvs:branch:trunk
2006-01-29 22:20:29 +00:00
Christopher Sean Morrison 333e941c1a fix the malloc/realloc and exp decl conflicts, include stdlib.h
svn:revision:26238
cvs:account:brlcad
cvs:branch:trunk
2006-01-29 22:19:01 +00:00
Christopher Sean Morrison e41f59dd1d update to api changes from rt_* to bu_* for certain routines.
svn:revision:26237
cvs:account:brlcad
cvs:branch:trunk
2006-01-29 08:39:28 +00:00
Christopher Sean Morrison fd034ce243 update converters to the API changes, avoiding the deprecated calls
svn:revision:26236
cvs:account:brlcad
cvs:branch:trunk
2006-01-29 01:39:53 +00:00
Christopher Sean Morrison f10e88bd23 more libbu memory management and header cleanup
svn:revision:26235
cvs:account:brlcad
cvs:branch:trunk
2006-01-29 00:51:54 +00:00
Christopher Sean Morrison 18d9a57bc1 header cleanup, include stdlib.h for atol(). fixes some 64-bitness
svn:revision:26234
cvs:account:brlcad
cvs:branch:trunk
2006-01-28 22:46:19 +00:00
Christopher Sean Morrison aa08eee9e4 header cleanup, atof() requires stdlib.h on altix/posix, fix 64-bitness
svn:revision:26233
cvs:account:brlcad
cvs:branch:trunk
2006-01-28 00:36:30 +00:00
Robert Parker 5e855b7bda The package require's argument needs to be BLT on Windows.
svn:revision:26232
cvs:account:bob1961
cvs:branch:trunk
2006-01-27 22:19:07 +00:00
Robert Parker af3722974e Added the rt_check_dest proc. Disable framebuffer related menu items as these are pertinant only to the embedded framebuffer.
svn:revision:26231
cvs:account:bob1961
cvs:branch:trunk
2006-01-27 22:15:53 +00:00
Robert Parker 4f539e59d7 Added cmd_has_embedded_fb().
svn:revision:26230
cvs:account:bob1961
cvs:branch:trunk
2006-01-27 22:11:01 +00:00
Robert Parker de429aa4e0 Not using embedded framebuffer in MGED on Windows.
svn:revision:26229
cvs:account:bob1961
cvs:branch:trunk
2006-01-27 22:06:49 +00:00
Robert Parker 717d024556 Convert a few instance variables into class variables.
svn:revision:26228
cvs:account:bob1961
cvs:branch:trunk
2006-01-27 13:11:41 +00:00
Lee Butler 6c780c2c25 When making an rpp whose min value is greater than the max value, we now report
the values so the user knows which ones were the problem.

svn:revision:26213
cvs:account:lbutler
cvs:branch:trunk
2006-01-26 23:35:23 +00:00
Christopher Sean Morrison 9c612c885b if stdout has been redirected to a file, don't output ansi control sequences
svn:revision:26212
cvs:account:brlcad
cvs:branch:trunk
2006-01-26 21:55:50 +00:00
Christopher Sean Morrison ed4a8a19ed meh, ordering cleanup
svn:revision:26211
cvs:account:brlcad
cvs:branch:trunk
2006-01-26 21:53:47 +00:00
Robert Parker 0f88e6380f Add code to properly set the state of the edit buttons in the right side toolbar.
svn:revision:26210
cvs:account:bob1961
cvs:branch:trunk
2006-01-26 20:45:18 +00:00
Christopher Sean Morrison 47ea982286 fix archer file headers (update to indicate the assigned copyright that bob said they needed to be (see commit on src/archer/archer))
svn:revision:26209
cvs:account:brlcad
cvs:branch:trunk
2006-01-26 00:46:48 +00:00
Christopher Sean Morrison b6ababe9fa only traverse into Utility and Wizards if they actually exist
svn:revision:26208
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 19:48:42 +00:00
Christopher Sean Morrison cd631acdfd load the blt library by getting lib out of the bu_brlcad_root path.. need to refactor this puppy, but it should work irrespective of the other stuff
svn:revision:26207
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 03:19:11 +00:00
Christopher Sean Morrison d6e1be110a i suppose only one of the tk files wasn't needed due to conflicts.. the others seem rather important due to runtime symbol errors.. ;)
svn:revision:26206
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 03:16:59 +00:00
Christopher Sean Morrison ff477d9c7b make the other pkg_index error go away regarding: can't set "::blt::cursorWaitCount": parent namespace doesn't exist
svn:revision:26205
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 01:34:22 +00:00
Christopher Sean Morrison 426a0df06d more protections to avoid the can't read "env(ARCHER_HOME)": no such variable error when making the package index
svn:revision:26204
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 01:18:05 +00:00
Christopher Sean Morrison bc63f6ad5d argv0 is not available for some reason, so catch the exception and conditionally call LoadArcherLibs
svn:revision:26203
cvs:account:brlcad
cvs:branch:trunk
2006-01-25 01:00:41 +00:00
Christopher Sean Morrison 52d5841b64 add the verbose flag so that warnings/errors are apparent
svn:revision:26202
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 17:19:12 +00:00
Robert Parker efe62e9061 Remove USE_SURVICE_MODS ifdef/endif that was guarding a fflush in db_write().
svn:revision:26201
cvs:account:bob1961
cvs:branch:trunk
2006-01-24 15:44:21 +00:00
Christopher Sean Morrison 2034da36a9 convert iteration over the array of linked list of directory nodes to FOR_ALL_DIRECTORY_START/FOR_ALL_DIRECTORY_END instead
svn:revision:26200
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 05:00:27 +00:00
Christopher Sean Morrison 78a27cf8db the external isn't const, but the avs is (db5_export_attributes)
svn:revision:26199
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 04:45:05 +00:00
Christopher Sean Morrison 919204bc30 convert iteration over the array of linked lists to FOR_ALL_DIRECTORY_START/FOR_ALL_DIRECTORY_END instead
svn:revision:26198
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 04:30:46 +00:00
Christopher Sean Morrison 4cab4410e7 use the FOR_ALL_DIRECTORY_START/FOR_ALL_DIRECTORY_END macros for iterating over the array of linked list of directory nodes.
svn:revision:26197
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 04:24:33 +00:00
Christopher Sean Morrison 749751add3 don't need the db5_export_attributes extern decl as it's now in raytrace.h like it should have been
svn:revision:26196
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 04:11:11 +00:00
Christopher Sean Morrison 612455661c missing the declaration for db5_export_attributes()
svn:revision:26195
cvs:account:brlcad
cvs:branch:trunk
2006-01-24 04:08:37 +00:00
Lee Butler 225c91d427 include stdlib.h so that atof is known to return a double
svn:revision:26194
cvs:account:lbutler
cvs:branch:trunk
2006-01-23 23:38:04 +00:00
Lee Butler 4d0a911815 call to malloc() had the signature of a call to bu_malloc(). Fixed to call bu_malloc().
svn:revision:26193
cvs:account:lbutler
cvs:branch:trunk
2006-01-23 20:11:19 +00:00
Robert Parker e5e069ea07 Declare db5_export_attributes().
svn:revision:26192
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 18:03:27 +00:00
Robert Parker df552dc39b Removed declaration of variables from server.c
svn:revision:26191
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 18:02:14 +00:00
Robert Parker 1a6e45c9d0 Provide declarations for variables that live in server.c
svn:revision:26190
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 17:56:48 +00:00
Robert Parker a9d41fbe52 Include fbmsg.h instead of libfb/pkgtypes.h. Provide declarations for variables that live in server.c
svn:revision:26189
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 17:54:24 +00:00
Robert Parker 84b77c2032 Removed server.c
svn:revision:26188
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 17:50:15 +00:00
Robert Parker dae3ca345a Added server.c
svn:revision:26187
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 17:46:38 +00:00
Robert Parker bdb49ea2e2 Added the following new files: db_flags.c and db_inmem.c
svn:revision:26186
cvs:account:bob1961
cvs:branch:trunk
2006-01-23 17:44:27 +00:00
Christopher Sean Morrison 9b8d7ed01f use atol instaed of atoi
svn:revision:26185
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:54:02 +00:00
Christopher Sean Morrison 4dd2a45540 missing end quote
svn:revision:26184
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:51:39 +00:00
Christopher Sean Morrison 5a7cca2886 libbu for allocations
svn:revision:26183
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:47:59 +00:00
Christopher Sean Morrison e1404e2884 libbu for allocations
svn:revision:26183
cvs:branch:trunk
cvs:account:brlcad
2006-01-23 07:42:55 +00:00
Christopher Sean Morrison 40452132dc libbu for allocations
svn:revision:26183
cvs:branch:trunk
cvs:account:brlcad
2006-01-23 07:37:37 +00:00
Christopher Sean Morrison fc2aa8c12f stdlib.h for atoi()
svn:revision:26182
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:35:05 +00:00
Christopher Sean Morrison 4566edb4d1 add stddef.h for bu_offsetof
svn:revision:26181
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:31:49 +00:00
Christopher Sean Morrison 541a26870f header protection, use bu_offsetof
svn:revision:26180
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:31:26 +00:00
Christopher Sean Morrison f519dd1a58 stdlib.h for getenv
svn:revision:26179
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:29:03 +00:00
Christopher Sean Morrison 19c04bdf97 missing arg to bu_free
svn:revision:26178
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:26:13 +00:00
Christopher Sean Morrison 773b9d8bab STATIC to static
svn:revision:26177
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:23:37 +00:00
Christopher Sean Morrison 891d2e26ca s/nmu/num/ transpose
svn:revision:26176
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:20:53 +00:00
Christopher Sean Morrison 14e94302e0 quell some warnings
svn:revision:26175
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:17:38 +00:00
Christopher Sean Morrison 5e4fa46cac use M_PI instead of PI, VDIVIDE_TOL instead of ZTOL, and libbu memory management
svn:revision:26174
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:15:53 +00:00
Christopher Sean Morrison f32326e12c libbu memory allocation management
svn:revision:26173
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:15:10 +00:00
Christopher Sean Morrison ff3c61ba38 use M_PI instead of PI, VUNITIZE_TOL instead of TOL, and libbu memory management
svn:revision:26172
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:13:20 +00:00
Christopher Sean Morrison fb275b2c48 use bu_malloc
svn:revision:26171
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:11:13 +00:00
Christopher Sean Morrison 23ce047819 stdlib.h
svn:revision:26170
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:11:02 +00:00
Christopher Sean Morrison 9265fa17ea libbu for memory management
svn:revision:26169
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:09:59 +00:00
Christopher Sean Morrison dc5fb511f9 ws
svn:revision:26168
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:06:42 +00:00
Christopher Sean Morrison bd8dd76af8 s/rt_malloc/bu_malloc
svn:revision:26167
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:06:29 +00:00
Christopher Sean Morrison ad7b9cd1ff use libbu memory allocation management, get rid of null checks
svn:revision:26166
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 07:05:50 +00:00
Christopher Sean Morrison 19e554de34 stdlib.h for alloc/getenv funcs
svn:revision:26165
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 06:32:37 +00:00
Christopher Sean Morrison bea7379851 clip.c removed, being used from libdm like it should be
svn:revision:26164
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 06:32:04 +00:00
Christopher Sean Morrison 9b0e7b5088 stdlib.h
svn:revision:26163
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 06:20:27 +00:00
Christopher Sean Morrison 7ee4ce2cdf update to use GED_MIN and GED_MAX
svn:revision:26162
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 06:04:29 +00:00
Christopher Sean Morrison e39e720613 convert to libbu memory management
svn:revision:26161
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 05:10:58 +00:00
Christopher Sean Morrison 2b5b95a5b8 convert to libbu memory management
svn:revision:26160
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 05:03:40 +00:00
Christopher Sean Morrison ffa5c1b5b5 stdlib.h for malloc and friends, not using libbu management as there is failure recovery code
svn:revision:26159
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 05:02:01 +00:00
Christopher Sean Morrison 8a476936ef include stddef.h for bu_offsetof
svn:revision:26158
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 04:45:19 +00:00
Christopher Sean Morrison c5704eb3a4 convert to bu_malloc for all but one section so that it may fail gracefully
svn:revision:26157
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 04:44:57 +00:00
Christopher Sean Morrison 45e4a650e2 need stdlib.h for getenv()
svn:revision:26156
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 04:36:32 +00:00
Christopher Sean Morrison 289522065a don't use INFINITY as it's a publicly defined macro usually, regardless, it's used as a clipping plane distance so call it that. increase it one order to a billion while we're at it.
svn:revision:26155
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 04:28:44 +00:00
Christopher Sean Morrison b6db563b9a convert to libbu memory management
svn:revision:26154
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 04:06:52 +00:00
Christopher Sean Morrison 40dfd7b502 how in the world did struct "vu_vls" compile?
svn:revision:26153
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 03:28:07 +00:00
Christopher Sean Morrison 29c996d828 convert to libbu memory management
svn:revision:26152
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 03:14:49 +00:00
Christopher Sean Morrison 15eaa29888 include stddef.h for bu_offset's usage of offset
svn:revision:26151
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 03:14:20 +00:00
Christopher Sean Morrison 790228e2f8 convert to libbu memory management
svn:revision:26150
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 02:56:59 +00:00
Christopher Sean Morrison ef6615741b convert to libbu memory management, removing the need for the memory allocation failure checking/handling
svn:revision:26149
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 01:24:03 +00:00
Christopher Sean Morrison 4fc7bdace1 include stddef.h for bu_offset's usage of offset
svn:revision:26148
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 00:35:08 +00:00
Christopher Sean Morrison 978c2e6383 use bu_calloc and bu_free instead of calloc
svn:revision:26147
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 00:07:35 +00:00
Christopher Sean Morrison 6562fd7608 use bu_malloc and bu_free instead of malloc
svn:revision:26146
cvs:account:brlcad
cvs:branch:trunk
2006-01-23 00:04:36 +00:00
Christopher Sean Morrison 060d0776af remove the need for HAVE_STDLIB_H and need for stdlib.h and stddef.h. instead, let files that use the offsetof macros include stdlib.h. don't need decls for malloc,calloc,realloc any more. provide bu_offsetof() macro
svn:revision:26145
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 23:44:49 +00:00
Christopher Sean Morrison b2b69356c1 add header protections, conditionally include sys/time.h correctly
svn:revision:26144
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 23:40:43 +00:00
Christopher Sean Morrison 1d1ac29662 missing stddef.h for offsetof, convert references to offsetof to bu_offsetof
svn:revision:26143
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 23:37:39 +00:00
Christopher Sean Morrison 0f6396e47a missing stdlib.h for atol
svn:revision:26142
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 23:32:50 +00:00
Christopher Sean Morrison 2754de3816 include stdlib.h for malloc (cannot use bu_malloc() as the hash table may be used for MEM_DEBUG)
svn:revision:26141
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 21:23:15 +00:00
Christopher Sean Morrison 000a22015e ws
svn:revision:26140
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 21:22:23 +00:00
Christopher Sean Morrison 0fb1c29701 common file size uses longs now
svn:revision:26139
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 18:44:29 +00:00
Christopher Sean Morrison 679e16906c use bu_malloc instead of malloc
svn:revision:26138
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 18:37:40 +00:00
Christopher Sean Morrison be7f00d95a missing stdlib.h for malloc (only a few files that should be using malloc instead of bu_malloc)
svn:revision:26137
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 18:37:08 +00:00
Christopher Sean Morrison 6b2f7c1dc9 remove pkgtypes.h
svn:revision:26136
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 11:00:29 +00:00
Christopher Sean Morrison 8ca7cb4eea add header protection, include fbmsg.h
svn:revision:26135
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:59:37 +00:00
Christopher Sean Morrison 968df29cd0 ws
svn:revision:26134
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:46:12 +00:00
Christopher Sean Morrison a4d405e2f0 include server.c, moved from src/libfb to there
svn:revision:26133
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:40:45 +00:00
Christopher Sean Morrison ce895aee98 declare the fb_server_pkg_switch server callback switch table provided in server.c
svn:revision:26132
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:40:11 +00:00
Christopher Sean Morrison c73263da14 server.c was moved to src/fbserv/.; pkgswitch.c was removed entirely; pkgtypes.h was renamed to fbmsg.h and moved to include/.
svn:revision:26131
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:38:37 +00:00
Christopher Sean Morrison c06b59cb75 use fbmsg.h instead of pkgtypes.h (renamed and moved)
svn:revision:26130
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:37:18 +00:00
Christopher Sean Morrison 431e9ee371 remove used switch file, seems like a dumbed down example of the fbserv switch table with just close and error. not really useful.
svn:revision:26129
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:36:18 +00:00
Christopher Sean Morrison dcf7fbcdf8 by moving the framebuffer server switch table out of libfb and into fbserv directly, it no longer needs to be in fb.h, removing the fb.h interface coupling to pkg.h
svn:revision:26128
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:27:23 +00:00
Christopher Sean Morrison 34dd8b4332 add fbmsg.h to the list of headers (but make it noinst)
svn:revision:26127
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:25:53 +00:00
Christopher Sean Morrison 474099d49a moved src/libfb/server.c to src/fbserv/server.c; the file contains the fbserv callbacks and the callback table used exclusively by fbserv.
svn:revision:26126
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:22:38 +00:00
Christopher Sean Morrison a2e219811c change from HIDDEN to static, ws, use fbmsg.h
svn:revision:26125
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:20:20 +00:00
Christopher Sean Morrison 39ac96851c moved/renamed src/libfb/pkgtypes.h to include/fbmsg.h as it is used both by the library (if_remote) and by the application (fbserv) for communicating; whether it's considered a public header or a private header that fbserv happens to understand is still up for debate
svn:revision:26124
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 10:19:22 +00:00
Christopher Sean Morrison c7ec59128f there is no need/intent to modify the pkg_switch callback structure, so make it const
svn:revision:26123
cvs:account:brlcad
cvs:branch:trunk
2006-01-22 09:53:17 +00:00
Christopher Sean Morrison 877c4d153e a little less excitement about regions that evaluate to nothing, still report it if we're verbose a little more consistently.
svn:revision:26122
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 21:09:44 +00:00
Christopher Sean Morrison 8189d0d585 ah, r may be null from td_r when traversing
svn:revision:26121
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 20:47:38 +00:00
Christopher Sean Morrison cff3dcbc85 er, if BC_WITH_PARSERS is NOT defined..
svn:revision:26120
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 20:17:20 +00:00
Christopher Sean Morrison 225398feb4 add tests to determine whether we successfully found a system bison/flex yacc/lex tool pair for making parsers. if either isn't found, the parsers that are written to utilize them are disabled to prevent compile errors and a warning is output. if they are availabe WITH_PARSERS is provided to the makefiles and BC_WITH_PARSERS is defined for code to conditionally test against.
svn:revision:26119
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 19:41:01 +00:00
Christopher Sean Morrison 33da25c92c conditionally traverse into and link against the points subdirectory based on whether WITH_PARSERS was declared by configure after testing for yacc/lex.
svn:revision:26118
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 19:35:03 +00:00
Christopher Sean Morrison c41e22f4e7 disable the parse_points command conditionally depending on new configure checks for yacc/lex, output a message if it was disabled
svn:revision:26117
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 19:30:06 +00:00
Christopher Sean Morrison 925036d70e use AC_PROG_LEX instead of AM_PROG_LEX since the latter attempts to use the missing script to run flex but fails miserably due to the assumptions by automake that LEX_OUTPUT_ROOT will be set to something.
svn:revision:26116
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 17:18:24 +00:00
Christopher Sean Morrison 7ebaab2cad pkgtypes.h is in current dir, no need to couple to the directory name
svn:revision:26115
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 17:02:45 +00:00
Christopher Sean Morrison e12b3fa2e7 pkg.h isn't a local header
svn:revision:26114
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 17:02:08 +00:00
Christopher Sean Morrison 468570b471 framebuffer interface is presently tied to the network package library due to a return type, should decouple that
svn:revision:26113
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 16:51:40 +00:00
Christopher Sean Morrison c3f287fb3c Forgot to mention that considerable time was spent profiling and
optimizing the raytracer.  in particular, performance enhancements
were made in support of reducing large image overhead and some
unnecessary pixel processing.  this is particularly important for
background pixels, i.e. primary rays that miss the model.  performance
observed varies based on number of primary rays and the number that
miss, but results show anywhere from 5% (small "full" images) to 300%
increase (large "empty" images):

For example, shooting at a single sphere on a viewsize of 100000 at a
10kx10k pixel image, increase shows:

Before:  about 700,000 rtfms
 After:about 2,200,000 rtfms

Benchmark results increased consistently from about 2120 to 2270 on
one machine (mac g5), which seems reasonable given their relatively
tiny size and general lack of background.  shark made profiling fun.

svn:revision:26112
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 01:41:39 +00:00
Christopher Sean Morrison 79ec2c8533 mention the name of the new root solving application, roots_example.
svn:revision:26111
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 01:31:47 +00:00
Christopher Sean Morrison 1679d52d29 delete any CVS directories from our candidate distribution since we don't want to ship them
svn:revision:26110
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:58:06 +00:00
Christopher Sean Morrison 912b36af0a scratch that, the test will be moved to the top-level makefile so NO cvs dirs get included
svn:revision:26109
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:52:57 +00:00
Christopher Sean Morrison 66ea7fcc69 don't include enigma's CVS directory in the distribution
svn:revision:26108
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:51:06 +00:00
Christopher Sean Morrison 2afbc1dd9a 7.8 will likely be released in february
svn:revision:26107
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:42:31 +00:00
Christopher Sean Morrison 1c4f3a4360 oops, put roots_example into the right release block
svn:revision:26106
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:38:14 +00:00
Christopher Sean Morrison 2580fb36dc new example root solving sample application
svn:revision:26105
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:37:04 +00:00
Christopher Sean Morrison 8971e258b4 ignore the roots_example binary
svn:revision:26104
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:35:14 +00:00
Christopher Sean Morrison 830ff1ac5a add roots_example.c as a sample application that uses the root solver
svn:revision:26103
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:32:47 +00:00
Christopher Sean Morrison 7b552d6093 might as well add a linear root example too, fix type on rt_poly_roots()
svn:revision:26102
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:32:20 +00:00
Christopher Sean Morrison cd8c33776b add a simple example application that shows how to use the root solver for solving polynomial roots (up to 4th order shown)
svn:revision:26101
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:26:43 +00:00
Christopher Sean Morrison d5967034ee cast the time_t to a long so we don't need to necessarily stash a time_t in the mappedfile structure any more
svn:revision:26100
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:22:23 +00:00
Christopher Sean Morrison 488883cf74 remove the unnecessary time_t type from the public header so that the dependency on time.h may be eliminated
svn:revision:26099
cvs:account:brlcad
cvs:branch:trunk
2006-01-21 00:02:28 +00:00
Christopher Sean Morrison 01b7db56f6 main returns an int
svn:revision:26098
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 22:43:55 +00:00
Christopher Sean Morrison 4a119aab39 check clone args a little more consistently
svn:revision:26097
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 21:16:47 +00:00
Christopher Sean Morrison 258f9aeb9f prevent g-nmg segfault during tesselation
svn:revision:26096
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 20:30:26 +00:00
Christopher Sean Morrison ba6ad466d4 prevent a sigsegv when the region can't be evaluated successfully
svn:revision:26095
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 20:27:40 +00:00
Christopher Sean Morrison 1c51097dd9 reuse VUNITIZE_TOL from vmath instead of something new
svn:revision:26094
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 20:06:47 +00:00
Christopher Sean Morrison a3f4d2838b add bugs and feature requests observed during the 2005 winter brl-cad user training at survice.
svn:revision:26093
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 16:22:12 +00:00
Christopher Sean Morrison 848d85dd0b build failure on os x 10.2 is a known issue
svn:revision:26092
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 16:10:00 +00:00
Daniel Rossberg 7fded05e22 update copyright to 2006
svn:revision:26091
cvs:account:d_rossberg
cvs:branch:trunk
2006-01-20 08:53:39 +00:00
Daniel Rossberg 4c98f1031d set HAVE_CONFIG_H to get internal declarations,
db_flags.c, db_inmem.c added

svn:revision:26090
cvs:account:d_rossberg
cvs:branch:trunk
2006-01-20 08:50:35 +00:00
Daniel Rossberg 3471dcace7 set HAVE_CONFIG_H to get internal declarations
svn:revision:26089
cvs:account:d_rossberg
cvs:branch:trunk
2006-01-20 08:47:08 +00:00
Christopher Sean Morrison 0a828d9ddd heh, fPIC breaks irix compiler (they use DPIC)
svn:revision:26088
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 02:05:08 +00:00
Christopher Sean Morrison 7f96ae80d2 unused var
svn:revision:26087
cvs:account:brlcad
cvs:branch:trunk
2006-01-20 00:41:16 +00:00
Robert Parker 1b80d376d0 Minor tweaks to the _invoke_wizard_update and _init_obj_edit_view methods.
svn:revision:26086
cvs:account:bob1961
cvs:branch:trunk
2006-01-19 16:00:19 +00:00
Christopher Sean Morrison f30dc91b31 missing trailing slash
svn:revision:26085
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 15:34:33 +00:00
Christopher Sean Morrison f624dbcb93 while it's bizarre for them to be different, only report a failure to conform if the implementation is epsilon is less than the expected power
svn:revision:26084
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 04:39:40 +00:00
Christopher Sean Morrison be1a67274a justin's idea of a librt-based path tracer is pretty cool
svn:revision:26083
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 04:31:17 +00:00
Christopher Sean Morrison 046c3aa1e0 system identifier application with sysctl-style information database
svn:revision:26082
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 04:29:26 +00:00
Christopher Sean Morrison d87aa4dca4 support for features either as primitives or operations or both, e.g. chamfer, fillet, round
svn:revision:26081
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 04:13:45 +00:00
Christopher Sean Morrison 3efd2aa6c0 mingw is once again delayed a release, archer rises to the list for the current distribution
svn:revision:26080
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 04:06:04 +00:00
Christopher Sean Morrison cf87729a67 have archer search the current directory for tclscripts in case we're not installed
svn:revision:26079
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 02:08:07 +00:00
Christopher Sean Morrison 33b85b7ea3 modify the auto_path as soon as we have the tcl interpreter so that even resources like tk.tcl may be found when mixing system/non-system tcl with other system/non-system components
svn:revision:26078
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 00:34:24 +00:00
Christopher Sean Morrison 0a1eb17e63 search for the tcl/tk stub libraries too, and utilize them accordingly if someone asks for a system tcl or tk. for now, presume that tcl+tclstub and tk+tkstub always exist together or at least that it'll link regardless.
svn:revision:26077
cvs:account:brlcad
cvs:branch:trunk
2006-01-19 00:19:26 +00:00
Christopher Sean Morrison 0edeb89ddd include missing stuff in the distribution, add the Makefile.defs for fast builds
svn:revision:26076
cvs:account:brlcad
cvs:branch:trunk
2006-01-18 21:04:51 +00:00
Christopher Sean Morrison 230b47523b include the files in the distribution
svn:revision:26075
cvs:account:brlcad
cvs:branch:trunk
2006-01-18 19:44:28 +00:00
Christopher Sean Morrison 60aa4ef997 update copyright to 2006
svn:revision:26074
cvs:account:brlcad
cvs:branch:trunk
2006-01-18 06:46:31 +00:00
Christopher Sean Morrison a0e66ac20c convert/update the copyright script from a BSD sed using the -E option for extended regular expressions (an option which the GNU sed doesn't recognize). convert the sed expressions to basic regular expressions instead so it works with either without needing to test sed for option support or limiting to one versus the other.
svn:revision:26073
cvs:account:brlcad
cvs:branch:trunk
2006-01-18 06:42:50 +00:00
Christopher Sean Morrison ab270683ec don't need configure in cvs
svn:revision:26072
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:54:03 +00:00
Christopher Sean Morrison 3aaba12b4d revert
svn:revision:26071
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:43:29 +00:00
Christopher Sean Morrison 84799f0840 don't need configure in cvs
svn:revision:26070
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:41:24 +00:00
Christopher Sean Morrison c90ed6455e don't need configure, can be generated
svn:revision:26069
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:33:37 +00:00
Christopher Sean Morrison 2993b53341 revert
svn:revision:26068
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:32:48 +00:00
Christopher Sean Morrison bbc3001181 no need to put configure in cvs, especially if we're not using it
svn:revision:26067
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:27:27 +00:00
Christopher Sean Morrison 75603b77c4 revert inadvertent mod
svn:revision:26066
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:21:55 +00:00
Christopher Sean Morrison 6ec43b1a27 revert inadvertent mod that will break the script
svn:revision:26065
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 06:20:22 +00:00
Christopher Sean Morrison 64e31faaed fix the manpage commments via s/\.\/"/.\\\"/g
svn:revision:26064
cvs:account:brlcad
cvs:branch:trunk
2006-01-17 05:54:52 +00:00
Christopher Sean Morrison c7b6c13577 fixed brlman/awf `./"' unsupported or unknown issue
svn:revision:26063
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 23:37:13 +00:00
Christopher Sean Morrison 5b8fa4ce60 our awf now supports ./" comments in addition to .\" ones
svn:revision:26062
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 23:32:08 +00:00
Christopher Sean Morrison b1a7e03523 support ./" and .\" as an awf comment
svn:revision:26061
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 23:30:00 +00:00
Christopher Sean Morrison dff20c1bc6 wrote the .g in-memory transfer example aplication
svn:revision:26060
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:29:11 +00:00
Christopher Sean Morrison 19d9998ed8 add declarations for the new routines in db_inmem.c and db_flags.c, namely db_open_inmem, db_create_inmem, and db_flags_raw_internal
svn:revision:26059
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:27:44 +00:00
Christopher Sean Morrison 0e858b2ec8 switch it back to db_open_inmem() instead of db_create_inmem() since testing is done, either should work fine but for this application, we don't need the _GLOBAL.
svn:revision:26058
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:26:38 +00:00
Christopher Sean Morrison 3ef9e7ec5d rename the dbip global to DBIP to distinguish it from local function dbip pointers. move the open/create/flag inmem routines into librt proper into the db_inmem.c and db_flags.c files.
svn:revision:26057
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:24:57 +00:00
Christopher Sean Morrison a0dc04eabb add db_flags.c and db_inmem.c
svn:revision:26056
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:22:08 +00:00
Christopher Sean Morrison d5e8e9e71f begin consolidating the in-memory-only database geometry support into one plcae. move db_inmem() to its own db_inmem.c file, adding two new routines for opening/creating in-memory databases via db_open_inmem() and db_create_inmem(). difference between the two being that create adds a _GLOBAL while open does not.
svn:revision:26055
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:21:36 +00:00
Christopher Sean Morrison 700295bf39 move the db_flags_internal() to its own db_flags.c file as it has very little to do with allocations. also, add another routine for getting the flags from a db5_raw_internal as well.
svn:revision:26054
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:18:56 +00:00
Christopher Sean Morrison c85e5fc41c protect from loosing memory and from otherwise potentially freeing what we are about to dup by stashing the pointer then freeing it.
svn:revision:26053
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 18:15:53 +00:00
Christopher Sean Morrison a676065ace ignore g_transfer
svn:revision:26052
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 17:56:01 +00:00
Christopher Sean Morrison b8c76bc08a new g_transfer in-memory geometry example program
svn:revision:26051
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 08:43:55 +00:00
Christopher Sean Morrison a29881e8ef now fully working, shooting rays at the remote geometry being held in-memory only. finishing polish fixes that were needed include making the dbi_title memory dynamic so librt doesn't try to free the static string, do the something during the ciao instead of after the server shuts down, and MOST IMPORTANTLY .. don't free the libpkg buf buffer that was used to set the external buffer, that gets stashed into the directory pointer, that must not be free'd when we try to use it...(that took a long time to find)
svn:revision:26050
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 08:40:38 +00:00
Christopher Sean Morrison 978bfaf827 quell a warning after repeat calls to rt_clean() since the rti_nsol_by_type wasn't getting set to zero when the memory was released. now it checks for the zero param to bu_free and clears the nsol value.
svn:revision:26049
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 08:33:56 +00:00
Christopher Sean Morrison d981d9eff6 stash the node into an argv for rt_gettree() so that it may be null-padded. helps debugging to see the boundary.
svn:revision:26048
cvs:account:brlcad
cvs:branch:trunk
2006-01-16 01:59:56 +00:00
Christopher Sean Morrison ad3f9e1ba1 missing curlies, so wrong message was getting printed on bad objects.
svn:revision:26047
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 23:49:36 +00:00
Christopher Sean Morrison 845a58e4a4 ws
svn:revision:26046
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 23:48:52 +00:00
Christopher Sean Morrison 0b2fe6b995 ack, make sure the file pointer isn't null before trying to fclose it
svn:revision:26045
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 20:36:08 +00:00
Christopher Sean Morrison 2fd9d4c4f0 give the server something to do with the geometry sent to it -- the client can specify objects that should be shot at via MSG_ARGS packets. the server stashes those object names and then shoots a ray at them when the client disconnects. since external packets actually include their data lengths inside, we don't need to send that object length as a string. server now correctly stashes the geometry as in-memory objects.
svn:revision:26044
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 19:42:48 +00:00
Christopher Sean Morrison d24f81488f add header checks for ieeefp.h, setjmp.h, and waitflags.h for the blt package, also add function checks for finite() and isfinit() from libm and a sizeof test for long long.
svn:revision:26043
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 18:25:17 +00:00
Christopher Sean Morrison 63b7512f4a there seem to be two macro names missing for systems where sizeof_void_p is 8 (MAX_LIST_VALUES and START_LOGSIZE) so move their defines outside the #if so everyone gets it.
svn:revision:26042
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 17:14:17 +00:00
Christopher Sean Morrison 746241f64b their configure indicated they need socket, m, and nsl, so add them
svn:revision:26041
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 17:07:28 +00:00
Christopher Sean Morrison 9ec25f7b83 fix a problem where the an aborted autogen.sh would leave a configure.ac.backup and a subsequent failing autoconf would restore the wrong/old backup. only restore if we made the backup.
svn:revision:26040
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 08:48:35 +00:00
Christopher Sean Morrison 75b6babc83 add the new BC_COMPLIANT_FLOAT and BC_COMPLIANT_DOUBLE tests
svn:revision:26039
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 08:32:18 +00:00
Christopher Sean Morrison f2ad69a794 add BC_COMPLIANT_FLOAT and BC_COMPLIANT_DOUBLE for determining whether the floating point implementation seems to be IEEE 754 compliant. a handful of tests are performed, namely checking that the epsilon tolerance matches the defined power, making sure 0 == -0, and that -0 is actually implemented.
svn:revision:26038
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 08:30:09 +00:00
Christopher Sean Morrison fd85106105 run AC_C_BIGENDIAN without overriding the if-true and if-false so that the regular WORDS_BIGENDIAN define is provided (added for blt, which relies on it). test for size of int and long so that the result is logged for debugging. add checks to determine the floating point epsilon values too.
svn:revision:26037
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 04:09:59 +00:00
Christopher Sean Morrison 1b0fcb09da new m4/epsilon.m4 file. define macros BC_TRY_RUN_OUTPUT, BC_FLOAT_EPSILON, and BC_DOUBLE_EPSILON. BC_TRY_RUN_OUTPUT attempts to compile and run the provided program, saving the output in the provided variable. this makes for really convenient tests that can output a calculated value (like computation tolerances). The latter two respectively determine the floating point tolerance epsilon value (i.e. smallest value such that 1.0 + value != 1.0). ANSI defines macros that should be provided, but they are sometimes not.
svn:revision:26036
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 04:04:26 +00:00
Christopher Sean Morrison 23cc050644 meh
svn:revision:26035
cvs:account:brlcad
cvs:branch:trunk
2006-01-15 03:48:21 +00:00
Christopher Sean Morrison 905e7a4259 use rt_gettrees_and_attrs instead of rt_gettrees_muves. the latter is a special hook routine provided to muves (though why rt_gettrees_and_attrs wasn't sufficient is a mystery to me). the abstraction does keep them ever so slightly decoupled, but brl-cad code shouldn't be calling it even if rtshot was initially perhaps an example for them.
svn:revision:26034
cvs:account:brlcad
cvs:branch:trunk
2006-01-14 03:22:09 +00:00
Robert Parker 51bba79972 Add better support for toggling display of primitive labels when Archer is embedded.
svn:revision:26033
cvs:account:bob1961
cvs:branch:trunk
2006-01-13 18:24:29 +00:00
Robert Parker d53d510318 Update to 0.7.3
svn:revision:26032
cvs:account:bob1961
cvs:branch:trunk
2006-01-13 15:15:36 +00:00
Robert Parker d1d1a3d462 Add code to possibly call the (-shaderChangedCallback) from the changedShader method.
svn:revision:26031
cvs:account:bob1961
cvs:branch:trunk
2006-01-13 15:12:36 +00:00
Robert Parker 152a949fad Modify the packTree method to ignore malformed lines. Add call to _refresh_tree to _apply_edit and _reset_edit
svn:revision:26030
cvs:account:bob1961
cvs:branch:trunk
2006-01-13 15:10:19 +00:00
Christopher Sean Morrison 960823c982 fix AND improve the adrt checks. some variables had changed (making them wrong) for testing sdl/python; they're now fixed. add an --enable-adrt option that is coupled to the --with-sdl and --with-python options including all the additional checks for making sure all the various combinations make sense or output messages or abort. before doing any BC_RETRY_CONFIGURE, output a message as to why we are retrying. sdl test only needs to check for sdl-config if sdl is actuallly going to be used, same for python. make the jove test consistent with the other tests.
svn:revision:26029
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 23:41:52 +00:00
Christopher Sean Morrison 072e9f3996 shouldn't need module or static for this library, move CPPHEADERS to the top, don't install the blt config.h files, install the rest of the headers
svn:revision:26028
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 23:36:41 +00:00
Christopher Sean Morrison a2595be60f shouldn't need module, don't link the tk sources
svn:revision:26027
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 23:35:30 +00:00
Christopher Sean Morrison 559e716169 just make blt use brl-cad's common.h for config.h results
svn:revision:26026
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 23:33:36 +00:00
Christopher Sean Morrison c1f1bb8399 move the AM_CPPFLAGS up to the top
svn:revision:26025
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 23:32:00 +00:00
Robert Parker 0cf4f6a207 Add the ability to toggle display of primitive labels.
svn:revision:26024
cvs:account:bob1961
cvs:branch:trunk
2006-01-12 21:03:17 +00:00
Christopher Sean Morrison 7b2ce1ea45 apply blt2.4z-patch-2
svn:revision:26023
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 21:01:56 +00:00
Robert Parker 71f9cc3a03 The -i option doesn't take an argument.
svn:revision:26022
cvs:account:bob1961
cvs:branch:trunk
2006-01-12 15:48:07 +00:00
Christopher Sean Morrison 45ad9b444d sgi dial knobs should be working release after next
svn:revision:26021
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 06:01:54 +00:00
Christopher Sean Morrison 338ddd789e add callback data parameteres to libpkg hook functions so one doesn't have to use global data
svn:revision:26020
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 04:55:47 +00:00
Christopher Sean Morrison 2b4980141a begin initial support for creating an in-memory geometry database (routines will likely move into librt, but here for now for simplicity (db_open_inmem() and db_create_inmem()). also send the length of each object over the wire as an ascii string for simplicity so we can easily restore the bu_external structure without going through hoops. add an rt_init_resource() call for convenience until the next release since db_open() is bugged on earlier versions.
svn:revision:26019
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 01:39:42 +00:00
Christopher Sean Morrison a3a14c4b89 quell braindead compiler warning on altix where strerror_r is declared to return a char * (gnu glibc extension) instead of an int (posix, bsd, c89, svid3) like it's supposed to.
svn:revision:26018
cvs:account:brlcad
cvs:branch:trunk
2006-01-12 01:34:02 +00:00
Christopher Sean Morrison cab3bf09fe ws
svn:revision:26017
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 22:45:23 +00:00
Christopher Sean Morrison d6ee1c5734 clean up db_create()'s logic considerably. annoyingly, the version check for writing out the ident can't go away since db_fwrite_ident() has no means to determine the version (need some wrapper interface)
svn:revision:26016
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 22:42:59 +00:00
Christopher Sean Morrison 8258ab40f8 correctly free our allocated resources in db5_fwrite_ident() even on fatal error by stashing the result.
svn:revision:26015
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 22:11:21 +00:00
Christopher Sean Morrison 8b5b3c4087 remove dead init line, dbi_eof is set to something else two lines after.
svn:revision:26014
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 21:24:11 +00:00
Christopher Sean Morrison 2b4daf9846 heh, wrong line and bad syntax.. never mind
svn:revision:26013
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 20:50:28 +00:00
Christopher Sean Morrison b2c4ad2447 init mat to NULL before checking if it's null.
svn:revision:26012
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 19:19:34 +00:00
Christopher Sean Morrison 9ece77dc64 prevent a segfault if caller provides a null mode to db_open()
svn:revision:26011
cvs:account:brlcad
cvs:branch:trunk
2006-01-11 19:18:57 +00:00
Robert Parker e4ddcf827c Modify the _apply_edit method to not call _refresh_tree.
svn:revision:26010
cvs:account:bob1961
cvs:branch:trunk
2006-01-11 16:36:31 +00:00
Robert Parker 1f60fced95 Arrange to call the shader changed callback when editing the shader form.
svn:revision:26009
cvs:account:bob1961
cvs:branch:trunk
2006-01-11 16:34:29 +00:00
Robert Parker b0333419a5 The edit panels are no longer using Scrolledframes. Modify _select_node method to always update the edit panel. _reset_edit no longer calls _refresh_tree
svn:revision:26008
cvs:account:bob1961
cvs:branch:trunk
2006-01-11 15:34:00 +00:00
Robert Parker 382364bbef Mods to NOT use Scrolledframe
svn:revision:26007
cvs:account:bob1961
cvs:branch:trunk
2006-01-10 22:40:39 +00:00
Robert Parker 2b432beb8f Update index
svn:revision:26006
cvs:account:bob1961
cvs:branch:trunk
2006-01-10 22:39:08 +00:00
Robert Parker e03f5b64ce Add the following methods: packTree, unpackTree and unpackTreeGuts
svn:revision:26005
cvs:account:bob1961
cvs:branch:trunk
2006-01-10 22:38:02 +00:00
Robert Parker ada43e6584 Initial check-in
svn:revision:26004
cvs:account:bob1961
cvs:branch:trunk
2006-01-10 22:35:55 +00:00
Robert Parker b712124777 Add better support for boolean editing and shader editing. More mods to follow.
svn:revision:26003
cvs:account:bob1961
cvs:branch:trunk
2006-01-10 22:34:26 +00:00
Christopher Sean Morrison a9221e14da free our buffers
svn:revision:26002
cvs:account:brlcad
cvs:branch:trunk
2006-01-10 07:29:20 +00:00
Christopher Sean Morrison 795f3b2200 yes, libpkg does rock. send the geometry to the server properly specifying callbacks for the different packet types. server gets a simple processing loop to read in the data and handle the packets.
svn:revision:26001
cvs:account:brlcad
cvs:branch:trunk
2006-01-10 07:10:19 +00:00
Christopher Sean Morrison 1f0a168c5c libpkg is pretty cool. open a connnection from the client to the server using a really simple handshake protocol. client sends HELO, server listens for that HELO to distinguish valid clients from bogus connnections.
svn:revision:26000
cvs:account:brlcad
cvs:branch:trunk
2006-01-10 05:11:31 +00:00
Christopher Sean Morrison b5f7df2ac1 instead of two separate hook funcs, just use send_to_server() for both the specified geometry case and the non-specified geometry case.
svn:revision:25999
cvs:account:brlcad
cvs:branch:trunk
2006-01-09 23:10:50 +00:00
Christopher Sean Morrison 946a532b8d get rid of the db_walk_tree method since db_functree is considerably more simple for this purpose. stash the server details into our data struct.
svn:revision:25998
cvs:account:brlcad
cvs:branch:trunk
2006-01-09 17:55:36 +00:00
Christopher Sean Morrison 082b0e3981 commit a version that walks the specified geometry both with db_walk_tree() and db_functree(). db_functree was ultimately considerably more simple for this exercise, but useful to see what was provided with db_walk_tree and the differences. add support to run the client either passing all geometry or just a subset (hence the subtree walking)
svn:revision:25997
cvs:account:brlcad
cvs:branch:trunk
2006-01-09 17:45:20 +00:00
Christopher Sean Morrison 076deaf537 add an optional geometry argument for specifying what geometry to send (default is all); add a help option and make short options case insensitive
svn:revision:25996
cvs:account:brlcad
cvs:branch:trunk
2006-01-08 19:33:21 +00:00
Christopher Sean Morrison 65b8251d23 additional release may be made on an as-needed basis for bug-fix releases and security issues. December/January time frame is considered a single release iteration in order to accommodate holidays and vacations, and to give the devs a break.
svn:revision:25995
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 15:55:37 +00:00
Christopher Sean Morrison d8fb349f49 new geometry examples aren't going to happen this iteration
svn:revision:25994
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 15:36:01 +00:00
Christopher Sean Morrison 809f0e6df6 add the new g_transfer.c file to the build including the creation of the g_transfer example database application for transferring portions of a .g over the wire serialized.
svn:revision:25993
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 08:50:06 +00:00
Christopher Sean Morrison 35bcaa528e initial stubbed g_transfer example application for transferring portions of a geometry database over a network line serialized. incomplete, but provides the main organization.
svn:revision:25992
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 08:49:24 +00:00
Christopher Sean Morrison 9379aecbfd init the rt_uniresource structure if it hasn't been initialized yet so that we can call db_dirbuild() directly without necessarily needing to worry about initializing a resource structure. this mimicks the behavior and initialization that rt_dirbuild() performas as well.
svn:revision:25991
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 08:42:14 +00:00
Christopher Sean Morrison da9228af24 flubber fubber
svn:revision:25990
cvs:account:brlcad
cvs:branch:trunk
2006-01-06 02:41:35 +00:00
Lee Butler 7b17cfa249 added reshoot notice.
svn:revision:25989
cvs:account:lbutler
cvs:branch:trunk
2006-01-05 22:40:13 +00:00
Lee Butler 4f573552a1 extended documentation, code formatting, modified reporting
svn:revision:25988
cvs:account:lbutler
cvs:branch:trunk
2006-01-05 22:37:57 +00:00
Lee Butler 4c5c5b3828 better output formatting
svn:revision:25987
cvs:account:lbutler
cvs:branch:trunk
2006-01-05 22:05:24 +00:00
Lee Butler 7954f71ba0 Added a "BUGS" section with suitable caveats for precision loss
svn:revision:25986
cvs:account:lbutler
cvs:branch:trunk
2006-01-05 19:55:20 +00:00
Lee Butler f0cf4513b9 This is an application for re-shooting rays and comparing the results
to previous applicatin runs.  The princiiple use will probably be
in the regression test suite.  In that context, it should allow us
to shoot all the MUVES test suite rays outside of MUVES.  The one downside
is that it relies on the RT_G_DEBUG flag DEBUG_ALLHITS to cause librt
to log the original rays.  Since floating point values are logged with %g some
precision is lost.

svn:revision:25985
cvs:account:lbutler
cvs:branch:trunk
2006-01-05 19:46:45 +00:00
Robert Parker 04b2b4eec5 All of archer including the tclscripts is assigned to u.s. government and should be under the LGPL
svn:revision:25984
cvs:account:bob1961
cvs:branch:trunk
2006-01-05 16:48:20 +00:00
Christopher Sean Morrison 048ac10e4e add support for DOS batch script files, using REM as the comment
svn:revision:25983
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 22:04:56 +00:00
Christopher Sean Morrison 2d44394004 add support for DOS batch script files, using REM as the comment
svn:revision:25982
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 21:57:12 +00:00
Robert Parker 9dae1caca4 Check-in for Doug Howard.
svn:revision:25981
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 21:34:07 +00:00
Robert Parker e5f3951ea5 Minor cleanup.
svn:revision:25980
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 21:28:55 +00:00
Robert Parker bced78be70 Modified to use tk_chooseColor. Other minor cleanup.
svn:revision:25979
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 19:13:45 +00:00
Robert Parker 6d896c2bb8 Add back door for accessing the master interpreter (i.e. the Command widget uses a slave interpreter for interfacing with the user). Other minor mods.
svn:revision:25978
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 19:10:24 +00:00
Robert Parker b306d79b91 Change the help for erotate, escale and etranslate to orotate, oscale and otranslate, respectively.
svn:revision:25977
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 19:07:16 +00:00
Robert Parker 4a63008441 Add to EXTRA_DIST for Windows
svn:revision:25976
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 16:03:54 +00:00
Christopher Sean Morrison 39c03465f6 add support for -F framebuffer option to fb-bw
svn:revision:25975
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 16:01:16 +00:00
Robert Parker 6a46e48513 Add scripts to EXTRA_DIST
svn:revision:25974
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 16:00:55 +00:00
Robert Parker d5444fb888 Add win to EXTRA_DIST
svn:revision:25973
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:59:30 +00:00
Robert Parker 1a549fea43 Add to EXTRA_DIST for Windows
svn:revision:25972
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:55:10 +00:00
Robert Parker 0ac03e1cf7 Initial check-in
svn:revision:25971
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:43:56 +00:00
Robert Parker 1200a0eb0b Add EXTRA_DIST for Windows
svn:revision:25970
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:42:31 +00:00
Robert Parker b3853e2645 Add EXTRA_DIST. Also add demos and win to SURDIRS.
svn:revision:25969
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:39:16 +00:00
Robert Parker e4940ca228 Add more blt dirs to AC_CONFIG_FILES
svn:revision:25968
cvs:account:bob1961
cvs:branch:trunk
2006-01-04 15:34:33 +00:00
Christopher Sean Morrison 1fd495881f no sense using saveifp in a function that provides the ifp
svn:revision:25967
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 05:41:33 +00:00
Christopher Sean Morrison c40af1917d there is no saveifp, should be ifp
svn:revision:25966
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 05:41:00 +00:00
Christopher Sean Morrison d239de5811 meh, shouldn't be in cvs, but update to 7.7.0 anyways
svn:revision:25965
cvs:account:brlcad
cvs:branch:trunk
2006-01-04 03:55:10 +00:00
Erik Greenwald fea955063f add searches for itcl32 and itk32, as FreeBSD removes the dot
svn:revision:25964
cvs:account:erikgreenwald
cvs:branch:trunk
2006-01-02 18:16:44 +00:00
Christopher Sean Morrison c2982bc175 do not include our config.h header in common.h if common has been installed (our public header files shouldn't be using config defines anyways). this will undoubtedly require more testing, but it makes it such that 3rd party developers don't necessarily need to include /usr/brlcad/include or use -DHAVE_CONFIG_H to get the header to simply work
svn:revision:25963
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 02:19:09 +00:00
Christopher Sean Morrison 0b6fd73388 add more comments on what the file is and its purpose, fix the compile example so that it works on an installed brl-cad too
svn:revision:25962
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 02:17:08 +00:00
Christopher Sean Morrison 1de36a4cc0 add the rtcheck_vers_win.c rtedge_vers_win.c that were added from the windows port branch so they are included in the dist
svn:revision:25961
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 02:14:57 +00:00
Christopher Sean Morrison bfd18ecf53 add support to restore the backups when an autogen.sh step aborts
svn:revision:25960
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 02:13:47 +00:00
Christopher Sean Morrison b2554b7197 bogus merge to dead directory. iges moved to src/conv/iges/.
svn:revision:25959
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 01:15:04 +00:00
Christopher Sean Morrison 83d5e43f4a add the missing g-iges-vers_win.c iges-g-vers_win.c windows vers.c files to the dist
svn:revision:25958
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 01:10:48 +00:00
Christopher Sean Morrison cf75528fed don't have access to intel compiler so reprioritize the benchmark testing to a later release.
svn:revision:25957
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 00:59:47 +00:00
Christopher Sean Morrison 430774c7f9 rename --enable-everything to --enable-almost-everything just to keep things more truthful, yet keep the original as an alias. make jove and the proe-plugin have a -build by default to be consistent with the other provided packages, exand on the proe plugin aliases.
svn:revision:25956
cvs:account:brlcad
cvs:branch:trunk
2005-12-31 00:17:09 +00:00
Christopher Sean Morrison 91ca2f63f0 consistent case on BLT and tkImg when printing the name of the package, order them after iwidgets for each section.
svn:revision:25955
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 23:45:14 +00:00
Christopher Sean Morrison 063a64f21c make tcl, itcl, iwidgets and the new blt and tkimg packages all default to 'auto' for determining whether to use/install them; fix the aliases for the two new packages and put their result output in the right place.
svn:revision:25954
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 23:34:39 +00:00
Christopher Sean Morrison 3ed9262e96 credit/blame me since rtarea was almost entirely rewritten when adding presented/exposed areas
svn:revision:25953
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 22:52:09 +00:00
Christopher Sean Morrison 244e4eed13 misc/win32-msvc7/Makefile listed twice
svn:revision:25952
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 21:35:00 +00:00
Christopher Sean Morrison e459514ab9 quantitative analysis instead of quality assurance
svn:revision:25951
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 21:12:11 +00:00
Christopher Sean Morrison 4c1c4b3355 added standard legalese file header, converted to bu_getopt for portability, increased max title length stored
svn:revision:25950
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 21:10:40 +00:00
Christopher Sean Morrison 876fc62d7c reid mged command, recursively assign region IDs; remat mged command, recursively assign a material ID; get_regions mged command, list assembly regions
svn:revision:25949
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:45:15 +00:00
Christopher Sean Morrison 1cad819f40 ws
svn:revision:25948
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:36:39 +00:00
Christopher Sean Morrison 0452b07458 add the script name to the error message when searching for the commands the script uses
svn:revision:25947
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:36:07 +00:00
Christopher Sean Morrison 4f0b3a2ee0 add reid.tcl and remat.tcl, re-add the mysteriously commented pkgIndex.tcl
svn:revision:25946
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:35:34 +00:00
Christopher Sean Morrison 80953feab7 add help data for reid, get_regions, and remat
svn:revision:25945
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:33:27 +00:00
Christopher Sean Morrison f50675e388 add a remat command to mged. remat assigns material IDs to all regions under some assembly to some given material ID number
svn:revision:25944
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:30:09 +00:00
Christopher Sean Morrison 020b3a2ef5 add a new reid and get_regions command to mged. reid assigns region IDs to all regions under some assembly starting at some given region ID number. get_regions is used by reid to obtain the names of regions under a given combination.
svn:revision:25943
cvs:account:brlcad
cvs:branch:trunk
2005-12-30 00:24:52 +00:00
Christopher Sean Morrison 67e31bc5b2 before next release: test intel compiler performance on Altix, add performance options
svn:revision:25942
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 23:02:46 +00:00
Christopher Sean Morrison 4837c5cb25 windows branch is merged
svn:revision:25941
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 22:59:15 +00:00
Robert Parker 2cabdf6aae Add the "Compact" file menu item.
svn:revision:25940
cvs:account:bob1961
cvs:branch:trunk
2005-12-29 20:19:47 +00:00
Robert Parker fc9c44f2fc Utilize a slave interpreter for better command/script parsing.
svn:revision:25939
cvs:account:bob1961
cvs:branch:trunk
2005-12-29 20:07:44 +00:00
Christopher Sean Morrison 87fa07b5de ignore generated tclIndex and pkgIndex.tcl scripts
svn:revision:25938
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 15:16:08 +00:00
Christopher Sean Morrison 6c84bcd7db missing the vers_win.c files for making source distributions that will compile on windows
svn:revision:25937
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 15:12:39 +00:00
Christopher Sean Morrison f284fe2df8 next release is going to be 7.8.0 given all the major enhancements, so bump revision up to 7.7.0
svn:revision:25936
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:46:41 +00:00
Christopher Sean Morrison 692ba887da these need a LOT more detail, but it's something. new Archer modeling and visualization tool - Bob Parker, Doug Howard; extensive Windows build support enhancements - Bob Parker. this isn't close to a patch update, 7.7.0 it becomes
svn:revision:25935
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:45:01 +00:00
Christopher Sean Morrison 3c45487a5e generate the Makefiles for all of the new win32_msvc7 project dirs
svn:revision:25934
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:35:24 +00:00
Christopher Sean Morrison d7e9947c85 traverse into the win32-msvc7 dir
svn:revision:25933
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:35:19 +00:00
Christopher Sean Morrison fa60828506 add the automake templates for all of the studio projects so that they are included in source distributions.
svn:revision:25932
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:31:20 +00:00
Christopher Sean Morrison a365c84ef8 add an automake makefile for the new win32_msvc7 directory so that it will get included in source distributions, traverse through it even
svn:revision:25931
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:21:47 +00:00
Christopher Sean Morrison ece692b405 use the HAVE_NETINET_IN_H header define instead of !_WIN32
svn:revision:25930
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:16:08 +00:00
Christopher Sean Morrison 53658c1c34 copy some of the event/alive checking that was added to if_ogl_win32.c for the if_ogl.c interface too.
svn:revision:25929
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:13:08 +00:00
Christopher Sean Morrison 3694c8ef4a ws
svn:revision:25928
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:04:23 +00:00
Christopher Sean Morrison 31bf85ce74 add the maintainercleanfiles sections, an rcs id, and the venerable Makefile.defs for consistency
svn:revision:25927
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:03:48 +00:00
Christopher Sean Morrison a3057468cc missing utility.tcl, add maintainercleanfiles and the Makefile.defs include
svn:revision:25926
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 08:03:20 +00:00
Christopher Sean Morrison f589181b8a add support to archer for running without necesssarily being installed yet
svn:revision:25925
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 03:52:52 +00:00
Christopher Sean Morrison a621b34814 avoid including sys/select.h outright since it conflicts on some systems (e.g. fbsd4). would be good to decouple fb's interface from the fd_set struct since it's only used in one place
svn:revision:25924
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 03:50:26 +00:00
Christopher Sean Morrison e84c8f18fb finish the sentence
svn:revision:25923
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 02:06:20 +00:00
Christopher Sean Morrison 0ab3a21ffd add a check to test whether we ended up with POSIX threading if only primarily to have the hint in the config.log output. the pthread test was found in gd's configure.ac and seems a reasonable fairely comprehensive test. pthread_cleanup_push is reportedly non-functional stub function on solaris; pthread_create and pthread_join are not necessarily in the same lib on irix (even though we prefer sproc on irix for performance); pthread_attr_init is apparently bonked on dec too.
svn:revision:25922
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 00:55:48 +00:00
Christopher Sean Morrison 25c7570302 remove the outdated warning about libtool 1.5 since autogen.sh works around the problem now
svn:revision:25921
cvs:account:brlcad
cvs:branch:trunk
2005-12-29 00:01:14 +00:00
Erik Greenwald 44a6273383 libtool on fbsd/amd64 seems to not use fPIC on this, causing breakage due
to non-relocatable code in libmultispectral. This seems to fix it, and
shouldn't damage other platforms.

svn:revision:25920
cvs:account:erikgreenwald
cvs:branch:trunk
2005-12-28 23:32:39 +00:00
Robert Parker 9767aeba58 Added code to set the BRLCAD_DATA environment variable.
svn:revision:25919
cvs:account:bob1961
cvs:branch:trunk
2005-12-28 17:09:16 +00:00
Christopher Sean Morrison 97651e6699 don't need Makefile.in files in CVS when there are Makefile.am files
svn:revision:25918
cvs:account:brlcad
cvs:branch:trunk
2005-12-27 19:26:46 +00:00
Christopher Sean Morrison e0eeeaa0aa got rid of the other tcl Makefile.in files, might as well get rid of this one too
svn:revision:25917
cvs:account:brlcad
cvs:branch:trunk
2005-12-27 19:23:06 +00:00
Robert Parker 7dd9edc863 Update the project settings (release only)
svn:revision:25916
cvs:account:bob1961
cvs:branch:trunk
2005-12-24 05:05:53 +00:00
1897 changed files with 26986 additions and 47141 deletions
+32 -2
View File
@@ -15,9 +15,29 @@ on-going issues.
Recent Bugs
-----------
* the findfont directive in gv postscript is reporting font not found
* wavelet isn't working correctly on a simple image decomposition &
reconstruction.
* our awf doesn't understand ./" manpage comments
* query_ray can't find nirt if not installed
* fbed is looking for /usr/lib/vfont/nonie.r.12
* mged doesn't check if html_dir does not exist when searching for
docs/browser.
* permute then translate doesn't refresh the graphics window
permute 4378
translate menus
p 0 0 0
p 0 0 0
* constrained axis translation bindings on OS X don't work
object/matrix edit
shift-alt mouse (left/mid/right for x/y/z respectively) should work
* mged documentation doesn't open on OS X
* the findfont directive in gv postscript is reporting font not found
* concave arbs give correct wireframe but do not raytrace correctly.
@@ -102,6 +122,16 @@ Older Bugs
displays. (e.g. 15 or 16 bit depth)
Annoyances
----------
* matrix edits on objects in mged require you to select a primitive
for a coordinate system reference. this can be counterintuitive and
confusing.
* there are frequently modality errors when entering edit mode as
control and middle mouse rebind to model edit instead of view edit.
---
Bugs should be reported to the bug tracker on the project website at
http://sourceforge.net/tracker/?atid=640802&group_id=105292
+1 -1
View File
@@ -94,7 +94,7 @@ terms for their respective contributions unless otherwise noted or
arranged. The following notice should be prominent in the BRL-CAD
sources:
Copyright (C) 2005 United States Government as represented by
Copyright (c) 2005-2006 United States Government as represented by
the U.S. Army Research Laboratory. All Rights Reserved.
Trademark
+29 -25
View File
@@ -250,8 +250,10 @@ system declarations and preprocessor defines.
FILESYSTEM ORGANIZATION
-----------------------
Here is a sample (not comprehensive) of how some of the sources are
organized in the source distribution:
Included below is a sample (not comprehensive) of how some of the
sources are organized in the source distribution. For the directories
under src/, see the src/README file for more details on subdirectories
not covered here.
bench/
The BRL-CAD Benchmark Suite
@@ -262,57 +264,53 @@ doc/
include/
Public headers
m4/
Compilation resource files
Autoconf compilation resource files
misc/
Anything not categorized or sufficently en masse
Anything not categorized or is sufficently en masse
pix/
Sample raytrace images
Sample raytrace images, includes benchmark reference images
regress/
Test suite
Scripts and resources for regression testing
sh/
Utility scripts
Utility scripts, used primarily by the build system
src/
Sources
src/anim/
Animation utilities
Sources, see src/README for more details
src/conv/
Geometry converters (most, but not all)
Various geometry converters
src/conv/iges/
IGES converter
src/fb/
Framebuffer services
Tools for displaying data to or reading from framebuffers
src/fbserv/
Framebuffer server
src/java/
Java raytrace interface to librt
src/lib*
BRL-CAD libraries
Java geometry server interface to librt
src/libbn/
Basic numerics library
BRL-CAD numerics library
src/libbu
Basic utility library
BRL-CAD utility library
src/libfb/
Framebuffer library
BRL-CAD Framebuffer library
src/libfft/
Fast Fourier transform library
src/libpkg/
Network "package" library
src/librt
Raytrace library
src/librt/
BRL-CAD Ray-trace library
src/libwdb/
Write-only database library
Write database library
src/mged/
Geometry editor
Multi-device geometry editor
src/other/
External frameworks (Tcl/Tk, libpng, zlib, etc)
src/proc-db/
Procedural geometry generators
Procedural geometry tools, create models programmatically
src/remrt/
Distributed raytrace support
src/rt/
Raytracers
Raytracers, various
src/util/
Various data processing utilities
Various image processing utilities
CODING STYLE
@@ -652,6 +650,12 @@ days of the iteration, only minor bug and build fixes. A release
should then be made within the first couple days of the next month's
iteration. Repeat, rinse, recycle.
In addition to the monthly iteration release, additional releases may
be made on an as-needed basis. This is particularly relevant for
emergency bug-fix releases and in response to security issues. The
December/January timeframe is considered a single iteration with only
one iteration release necessarily being made in that timeframe.
When making a release, certain public repositories, mailing lists, and
news outlets require updating and notification. Especially when the
major or minor version of BRL-CAD is going to be updated, it is very
+7 -6
View File
@@ -1,7 +1,7 @@
# M A K E F I L E . A M
# BRL-CAD
#
# Copyright (c) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
@@ -38,11 +38,6 @@
AUTOMAKE_OPTIONS = 1.6 dist-zip dist-bzip2
ACLOCAL_AMFLAGS = -I m4
# this shouldn't be here, but rather in the include directory
# for some reason, putting it there doesn't work
dist-hook:
rm -f $(distdir)/include/brlcad_config.h
required_dirs = \
include \
src
@@ -297,6 +292,11 @@ package:
@$(ECHO) " make tar - Builds a uncompressed tape archive"
@$(ECHO)
# delete files that should not be in the distribution
dist-hook:
rm -f $(distdir)/include/brlcad_config.h
rm -rf `find $(distdir) -type d -name CVS`
##########################
# summaries and warnings #
@@ -428,6 +428,7 @@ all-local:
fi
@$(ECHO)
include $(top_srcdir)/misc/Makefile.defs
# Local Variables:
+20 -1
View File
@@ -8,15 +8,34 @@ see that file and the CVS log for more historic information. The
entire history of the project is available through CVS.
----------------------------------------------------------------------
--- 2006-01-XX Release 7.6.7 ---
--- 2006-02-XX Release 7.7.0 ---
----------------------------------------------------------------------
This release marks the one year anniversary of BRL-CAD being released
as Open Source software. Thank you to everyone for your support and
contributions.
* added manual page for benchmark tool - Sean Morrison
* fixed g-dxf export compatibility issue - John Anderson
* smoother sketch primitive spline drawing - Sean Morrison
* fixed read bug in giftorle - Sean Morrison
* fixed multiply referenced object illumination bug - Sean Morrison
* improved nmg tesselation support reliability - Sean Morrison
* new tpkg ttcp-style example application using libpkg - Sean Morrison
* new roots_example root solving sample application - Sean Morrison
* prevent several g-nmg segfaults during tesselation - Sean Morrison
* fixed brlman/awf `./"' unsupported or unknown issue - Sean Morrison
* new g_transfer in-memory geometry example program - Sean Morrison
* new reshoot program to reshoot rays & compare results - Lee Butler
* added support for -F framebuffer option to fb-bw - Sean Morrison
* reid mged command, recursively assign region IDs - Sean Morrison
* remat mged command, recursively assign a material ID - Sean Morrison
* get_regions mged command, list assembly regions - Sean Morrison
* extensive Windows build support enhancements - Bob Parker
* new Archer modeling and visualization tool - Bob Parker, Doug Howard
* raytracers use image size for default aspect ratio - Sean Morrison
* fixed benchmark sqrt of negative numbers error - Sean Morrison
* raytracer performance enhancements - Sean Morrison
----------------------------------------------------------------------
+1 -5
View File
@@ -1,5 +1,5 @@
BRL-CAD
Release 7.6.8
Release 7.8.0
http://brlcad.org/
BRL-CAD is a powerful Combinatorial/Constructive Solid Geometry (CSG)
@@ -110,10 +110,6 @@ You will need to add /usr/brlcad/bin to your path (or whatever was
used as a --prefix during configure) in order for the BRL-CAD binaries
to be in your path.
Warning: Libtool 1.5.x may be incompatible due to changes the libtool
project made that were backwards-incompatible. Using an earlier 1.4.x
version is recommended for the time being.
BENCHMARK
---------
+67 -12
View File
@@ -17,20 +17,22 @@ http://sf.net/pm/?group_id=105292
THESE SHOULD HAPPEN BEFORE THE NEXT RELEASE
-------------------------------------------
* begin merging of windows branch
* write .g in-memory transfer example
* clone and tracker
* add geometry examples for toy jeep and building
* ensure successful build on mingw
* restore functionality to tests and benchmark
THESE SHOULD HAPPEN WITHIN TWO RELEASE ITERATIONS
-------------------------------------------------
* get archer working
* clone and tracker
* ensure successful build on mingw
* Mac OS X SGI dial knobs support
* add geometry examples for toy jeep and building
* test pic/nonpic build problems with librtms/libmultispectral
* run-time path identification of mged resources was never completed,
@@ -38,15 +40,65 @@ THESE SHOULD HAPPEN WITHIN TWO RELEASE ITERATIONS
* use environ for run-time path tracing lookups
* support variable overrides for autogen.sh
* add support to restore the backups when an autogen.sh step aborts
* write scripts that parse the sf.net tracker data and generate
automatic reports for release.
* support variable overrides for autogen.sh
THESE ARE LOWER PRIORITY OR FOR FUTURE RELEASES
-----------------------------------------------
* short introductory documentation on using various BRL-CAD command
line tools such as rt, mged, nirt, fbserv, converters, etc.
* short introductory documentation on using mged, covering a majority
of the various commands.
* reference sheet of useful BRL-CAD command-line tools grouped
categorically.
* reference sheet of common mged commands, keybindings, gui elements
and scripting facilities.
* support to the raytracers for multiple image file formats,
recognizing an option and/or the file suffix of the -o filename.
* libfb + font rendering (perhaps through libbn's plot interface) for
a posix terminal.
* gpgpu for enhanced performance boolweave sorting
* getexecname, "/proc/self/cmdline", program_invocation_short_name.
separate out into new file.
* write an introduction to brl-cad document that overviews the primary
tools and how they can be used together.
* test out -Wfloat-equal
* geometry viewing commands/visualizations of exploded levels
* add command line help options to 'benchmark' tool
* default mged text editor invokes ed, should invoke jove or system
gui editor like TextEdit on OS X if it's known.
* mirror around an arbitrary plane (maybe point+vector) in mged
* mirror around point/distance along axis operation in mged
* librt-based path tracer
* system identifier application with sysctl-style information
database, with some back-end functionality placed into libbu.
* write scripts that parse the sf.net tracker data and generate
automatic reports for release.
* add callback data parameters to libpkg hook functions
* test intel compiler performance on Altix, add performance options
* pix-png should make sure output is not to a terminal
* investigate performance impact of using sched_setaffinity and/or
@@ -103,6 +155,9 @@ ODDITIES
THESE BREAK PROTOCOL OR ARE BACKWARDS-INCOMPATIBLE
--------------------------------------------------
* support for features either as primitives or operations or both
e.g. chamfer, fillet, round, etc
* fix the database I/O writing to properly support the addition of new
primitive types. this includes modifying the major/minor code or
combinations/regions and binary objects
+9 -4
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# a u t o g e n . s h
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
@@ -503,7 +503,7 @@ done
#######################################
if test -d autom4te.cache ; then
$VERBOSE_ECHO "Found an autom4te.cache directory, deleting it"
$VERBOSE_ECHO "rm -f autom4te.cache"
$VERBOSE_ECHO "rm -rf autom4te.cache"
rm -rf autom4te.cache
fi
@@ -602,10 +602,12 @@ if [ "x$reconfigure_manually" = "xyes" ] ; then
if [ ! $ret = 0 ] ; then
# retry without the -f and with backwards support for missing macros
configure_ac_changed="no"
configure_ac_backupd="no"
if test "x$HAVE_SED" = "xyes" ; then
if test ! -f configure.ac.backup ; then
$VERBOSE_ECHO cp $_configure_file configure.ac.backup
cp $_configure_file configure.ac.backup
configure_ac_backupd="yes"
fi
ac2_59_macros="AC_C_RESTRICT AC_INCLUDES_DEFAULT AC_LANG_ASSERT AC_LANG_WERROR AS_SET_CATFILE"
@@ -654,8 +656,11 @@ if [ "x$reconfigure_manually" = "xyes" ] ; then
# failed so restore the backup
if test -f configure.ac.backup ; then
$VERBOSE_ECHO cp configure.ac.bacukp $_configure_file
cp configure.ac.backup $_configure_file
# make sure we made the backup file
if test "x$configure_ac_backupd" = "xyes" ; then
$VERBOSE_ECHO cp configure.ac.backup $_configure_file
cp configure.ac.backup $_configure_file
fi
fi
# test if libtool is busted
+4
View File
@@ -13,7 +13,11 @@ clobber:
dist_bin_SCRIPTS = \
benchmark
man_MANS = \
benchmark.1
EXTRA_DIST = \
$(man_MANS) \
${dist_bin_SCRIPTS} \
lgt.sh \
run.sh \
+130
View File
@@ -0,0 +1,130 @@
.TH BENCHMARK 1 BRL-CAD
.\" B E N C H M A R K . 1
.\" BRL-CAD
.\"
.\" Copyright (c) 2006 United States Government as represented by
.\" the U.S. Army Research Laboratory.
.\"
.\" This document is made available under the terms of the GNU Free
.\" Documentation License or, at your option, under the terms of the
.\" GNU General Public License as published by the Free Software
.\" Foundation. Permission is granted to copy, distribute and/or
.\" modify this document under the terms of the GNU Free Documentation
.\" License, Version 1.2 or any later version published by the Free
.\" Software Foundation; with no Invariant Sections, no Front-Cover
.\" Texts, and no Back-Cover Texts. Permission is also granted to
.\" redistribute this document under the terms of the GNU General
.\" Public License; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" You should have received a copy of the GNU Free Documentation
.\" License and/or the GNU General Public License along with this
.\" document; see the file named COPYING for more information.
.\"
.\".\".\"
.SH NAME
benchmark \- runs the BRL-CAD benchmark
.SH SYNOPSIS
.B benchmark
.SH DESCRIPTION
.PP
The benchmark suite will test the performance of a given system by
iteratively rendering several well-known datasets into 512x512 images
where performance metrics are documented and fairly well understood.
The local machine's performance is compared to the base system (called
VGR) and a numeric "VGR" mulitplier of performance is computed. This
number is a simplified metric from which one may qualitatively compare
cpu and cache performance, versions of BRL-CAD, and different compiler
characteristics.
.PP
There are several environment variables that will modify how the
BRL-CAD benchmark behaves so that it may be run in a stand-alone
environment:
.PP
\&
.B RT
\- the rt binary (e.g. ../src/rt/rt or /usr/brlcad/bin/rt)
.br
\&
.B DB
\- the directory containing the reference geometry (e.g. ../db)
.br
\&
.B PIX
\- the directory containing the reference images (e.g. ../pix)
.br
\&
.B LOG
\- the directory containing the reference logs (e.g. ../pix)
.br
\&
.B CMP
\- the name of a pixcmp tool (e.g. ./pixcmp)
.br
\&
.B ELP
\- the name of an elapsed time tool (e.g. ../sh/elapsed.sh)
.br
\&
.B TIMEFRAME
\- the minimum number of seconds each trace needs to take
.br
\&
.B MAXTIME
\- the maximum number of seconds to spend on any test
.br
\&
.B DEVIATION
\- the minimum sufficient % deviation from the average
.br
\&
.B AVERAGE
\- how many frames to average together
.br
\&
.B DEBUG
\- turn on extra debug output for testing/development
.PP
The \fITIMEFRAME\fR, \fIMAXTIME\fR, \fIDEVIATION\fR, and \fIAVERAGE\fR options control how the
benchmark will proceed including how long it should take. Each
individual benchmark run will consume at least a minimum \fITIMEFRAME\fR of
wallclock time so that the results can stabilize. After consuming at
least the minimum \fITIMEFRAME\fR, additional frames may be computed until
the standard deviation from the last \fIAVERAGE\fR count of frames is below
the specified \fIDEVIATION\fR. When a test is run and it completes in less
than \fITIMEFRAME\fR, the raytrace is restarted using double the number of
rays from the previous run. If the machine is fast enough, the
benchmark may accelerate the number or rays being fired. These
additional rays are hypersampled but without any jitter, so it's
effectively performing a multiplier amount of work over the initial
frame.
.PP
Plese send your BRL-CAD Benchmark results to the developers along with
detailed system information to <devs@brlcad.org>. Include at least:
.PP
0) Operating system type and version (e.g. uname -a)
1) Compiler name and version (e.g. gcc --version)
2) CPU configuration (e.g. cat /proc/cpuinfo or hinv or sysctl -a)
3) Cache (data and/or instruction) details for L1/L2/L3 and system
(e.g. cat /proc/cpuinfo or hinv or sysctl -a)
4) Output from this script (e.g. ./run.sh > run.sh.log 2>&1)
5) All generated log files (e.g. *.log* after running run.sh)
6) Anything else you think might be relevant to performance
.SH "SEE ALSO"
brlcad(1), rt(1), pix-fb(1), librt(3), pix(5).
.SH AUTHOR
Michael John Muuss
.br
Susan Muuss
.br
Christopher Sean Morrison
.SH SOURCE
BRL-CAD Open Source
.SH COPYRIGHT
This software is Copyright (c) 2006 United States Government as
represented by the U.S. Army Research Laboratory. All rights reserved.
.SH BUGS
None known.
.SH "BUG REPORTS"
Reports of bugs or problems should be submitted via electronic
mail to <devs@brlcad.org>.
+1 -1
View File
@@ -2,7 +2,7 @@
# L G T . S H
# BRL-CAD
#
# Copyright (C) 2004-2005 United States Government as represented by
# Copyright (c) 2004-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+1 -1
View File
@@ -1,7 +1,7 @@
/* P I X C M P . C
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
+7 -7
View File
@@ -2,7 +2,7 @@
# R U N . S H
# BRL-CAD
#
# Copyright (C) 2004-2005 United States Government as represented by
# Copyright (c) 2004-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
@@ -36,12 +36,12 @@
###
#
# This shell script runs the BRL-CAD Benchmark. The benchmark suite
# will test the performance of a given compiler by iteratively
# rendering several well-known datasets into 512x512 images where
# performance metrics are documented and fairly well understood. The
# local machine's performance is compared to the base system (called
# VGR) and a numeric "VGR" mulitplier of performance is computed.
# This number is a simplified metric from which one may qualitatively
# will test the performance of a system by iteratively rendering
# several well-known datasets into 512x512 images where performance
# metrics are documented and fairly well understood. The local
# machine's performance is compared to the base system (called VGR)
# and a numeric "VGR" mulitplier of performance is computed. This
# number is a simplified metric from which one may qualitatively
# compare cpu and cache performance, versions of BRL-CAD, and
# different compiler characteristics.
#
+1 -1
View File
@@ -2,7 +2,7 @@
# T R Y . S H
# BRL-CAD
#
# Copyright (C) 2004-2005 United States Government as represented by
# Copyright (c) 2004-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+1 -1
View File
@@ -2,7 +2,7 @@
# R E C H E C K . S H
# BRL-CAD
#
# Copyright (C) 2004-2005 United States Government as represented by
# Copyright (c) 2004-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+456 -148
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -2,7 +2,7 @@
/* D B . P H P
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+20 -9
View File
@@ -9,7 +9,6 @@ same as the UNIX, BSD, and Linux platforms.
X11 Window Server
-----------------
You'll need to install an X11 server if you would like to build Tk and
have a graphical user interface. Apple's X11 is the recommended X
Window Server, though XDarwin should work suitably as well. Be sure
@@ -19,17 +18,30 @@ package.
Supported Versions
------------------
BRL-CAD is generally only "extensively" tested by the developers on
the latest released version of Mac OS X only. That is to say that
although the BRL-CAD package should build on prior versions of the Mac
OS X operating system, they are generally and eventually not
maintained and will require additional effort to obtain a build.
Compiling on 10.3 or 10.4 should complete successfully. Due to a
variety of significant application programming interface issues in
early releases of Mac OS X, versions prior to 10.2 are unsupported.
BRL-CAD is generally extensively tested by the developers on the
latest released version of Mac OS X only. That is to say that
although the package should build on prior versions of the operating
system, they are generally unmaintained. Due to a variety of
significant application programming interface issues in early releases
of Mac OS X, versions prior to 10.2 are unsupported.
Mac OS X 10.2
-------------
Compiling directly on Mac OS X 10.2 requires additional effort. When
compiling from source, a libtool script is generated after running
autogen.sh that gets used during compilation. The version of
glibtoolize shipped with 10.2 is non-functional with respect to
convenience libraries, a feature that BRL-CAD requires. That means
that you will need to obtain the generated libtool script from other
means. You can either run autogen.sh on a different machine that has
a newer version of libtool installed or you can download a source
disribution where autogen.sh has already been run for you on a
relatively new system.
Parallel Builds
---------------
As many workstation and server systems shipped by Apple are
multiprocessor systems, you can enjoy the benefits of decreased
compile times by utilizing the "-j" option to make. After running
@@ -37,7 +49,6 @@ configure, run "make -j2" to build on a 2-processor system.
Bugs
----
The only known bugs specific to Mac OS X are limitations of Tk or the
X11 event handler that our generally outside of BRL-CAD's domain.
Refer to BUGS for more general details on known bugs and reporting
+23 -23
View File
@@ -1,27 +1,27 @@
.TH BW 5 BRL-CAD
./" B W . 5
./" BRL-CAD
./"
./" Copyright (c) 2005 United States Government as represented by
./" the U.S. Army Research Laboratory.
./"
./" This document is made available under the terms of the GNU Free
./" Documentation License or, at your option, under the terms of the
./" GNU General Public License as published by the Free Software
./" Foundation. Permission is granted to copy, distribute and/or
./" modify this document under the terms of the GNU Free Documentation
./" License, Version 1.2 or any later version published by the Free
./" Software Foundation; with no Invariant Sections, no Front-Cover
./" Texts, and no Back-Cover Texts. Permission is also granted to
./" redistribute this document under the terms of the GNU General
./" Public License; either version 2 of the License, or (at your
./" option) any later version.
./"
./" You should have received a copy of the GNU Free Documentation
./" License and/or the GNU General Public License along with this
./" document; see the file named COPYING for more information.
./"
./"./"./"
.\" B W . 5
.\" BRL-CAD
.\"
.\" Copyright (c) 2005-2006 United States Government as represented by
.\" the U.S. Army Research Laboratory.
.\"
.\" This document is made available under the terms of the GNU Free
.\" Documentation License or, at your option, under the terms of the
.\" GNU General Public License as published by the Free Software
.\" Foundation. Permission is granted to copy, distribute and/or
.\" modify this document under the terms of the GNU Free Documentation
.\" License, Version 1.2 or any later version published by the Free
.\" Software Foundation; with no Invariant Sections, no Front-Cover
.\" Texts, and no Back-Cover Texts. Permission is also granted to
.\" redistribute this document under the terms of the GNU General
.\" Public License; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" You should have received a copy of the GNU Free Documentation
.\" License and/or the GNU General Public License along with this
.\" document; see the file named COPYING for more information.
.\"
.\".\".\"
.SH NAME
bw \- Black and White image file format and utilities
.SH FORMAT
+23 -23
View File
@@ -1,27 +1,27 @@
.TH CMAP 5 BRL-CAD
./" C M A P . 5
./" BRL-CAD
./"
./" Copyright (c) 2005 United States Government as represented by
./" the U.S. Army Research Laboratory.
./"
./" This document is made available under the terms of the GNU Free
./" Documentation License or, at your option, under the terms of the
./" GNU General Public License as published by the Free Software
./" Foundation. Permission is granted to copy, distribute and/or
./" modify this document under the terms of the GNU Free Documentation
./" License, Version 1.2 or any later version published by the Free
./" Software Foundation; with no Invariant Sections, no Front-Cover
./" Texts, and no Back-Cover Texts. Permission is also granted to
./" redistribute this document under the terms of the GNU General
./" Public License; either version 2 of the License, or (at your
./" option) any later version.
./"
./" You should have received a copy of the GNU Free Documentation
./" License and/or the GNU General Public License along with this
./" document; see the file named COPYING for more information.
./"
./"./"./"
.\" C M A P . 5
.\" BRL-CAD
.\"
.\" Copyright (c) 2005-2006 United States Government as represented by
.\" the U.S. Army Research Laboratory.
.\"
.\" This document is made available under the terms of the GNU Free
.\" Documentation License or, at your option, under the terms of the
.\" GNU General Public License as published by the Free Software
.\" Foundation. Permission is granted to copy, distribute and/or
.\" modify this document under the terms of the GNU Free Documentation
.\" License, Version 1.2 or any later version published by the Free
.\" Software Foundation; with no Invariant Sections, no Front-Cover
.\" Texts, and no Back-Cover Texts. Permission is also granted to
.\" redistribute this document under the terms of the GNU General
.\" Public License; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" You should have received a copy of the GNU Free Documentation
.\" License and/or the GNU General Public License along with this
.\" document; see the file named COPYING for more information.
.\"
.\".\".\"
.SH NAME
cmap \- Framebuffer colormap file format and utilities
.SH FORMAT
+2 -1
View File
@@ -20,7 +20,8 @@ htmldocs_DATA = \
index.html \
small-eagleCAD.gif
EXTRA_DIST = $(htmldocs_DATA) \
EXTRA_DIST = \
$(htmldocs_DATA) \
small-eagleCAD.ico
include $(top_srcdir)/misc/Makefile.defs
+7
View File
@@ -1,5 +1,12 @@
# $Id$
htmldocsdir = $(BRLCAD_DATA)/html/manuals/archer
htmldocs_DATA = \
Archer_Documentation.chm \
archer.ico
EXTRA_DIST = \
$(htmldocs_DATA)
include $(top_srcdir)/misc/Makefile.defs
+1 -1
View File
@@ -380,7 +380,7 @@ The U. S. Army Research Laboratory
<br>
Aberdeen Proving Ground, Maryland 21005
<h1>COPYRIGHT</h1>
This software is Copyright (C) 1985-2005 United States Government as
This software is Copyright (c) 1985-2006 United States Government as
represented by the U.S. Army Research Laboratory. All rights reserved.
<h1>BUGS</h1>
Most deficiencies observed while using the
+32 -27
View File
@@ -1132,31 +1132,36 @@ mged <B>db form tgc</B> <BR>
-- Display the format used by the <I>get</I> and <I>put</I> commands for the </FONT><A HREF="#TGC"><FONT SIZE=2>TGC</FONT></A><FONT SIZE=2> shape type. </P></DIR>
<P><HR ALIGN="RIGHT"></P>
</FONT><B><DL>
<DT><A NAME="db_glob"><A NAME="dbbinary"></A></A>dbbinary </B><I>[-i|-o] -u type dest source </DT>
</I><DD>The &quot;dbbinary&quot; command is used to create or retrieve binary opaque objects. Currently, only uniform binary objects (arrays of values) are supported. One of <I>-i </I>or</DD>
<I><DD>-o</I> must be specified. The <I>-i</I> is for &quot;input,&quot; or creating a binary object, and the <I>-o</I> option is used for &quot;output," or retrieving a binary object. The <I>-u</I> type argument must be supplied when <I>-i</I> is used, to indicate the type of uniform binary object to be created. On input, the <I>dest</I> is the name of the object to be created, and the <I>source</I> is the path to a file containing the values in the local host format. On output, <I>dest</I> is the path to a file to receive the contents of the binary object whose name appears in source. The <I>type</I> may be one of:</DD>
<I><DD>f </I>-&gt; float</DD>
<I><DD>d </I>-&gt; double</DD>
<I><DD>c </I>-&gt; char (8 bit)</DD>
<I><DD>s </I>-&gt; short (16 bit)</DD>
<I><DD>i </I>-&gt; int (32 bit)</DD>
<I><DD>l </I>-&gt; long (64 bit)</DD>
<I><DD>C </I>-&gt; unsigned char (8 bit)</DD>
<I><DD>S </I>-&gt; unsigned short (16 bit)</DD>
<I><DD>I </I>-&gt; unsigned int (32 bit)</DD>
<I><DD>L </I>-&gt; unsigned long (64 bit)</DD>
</FONT> <B>
<DL>
<DT><A NAME="db_glob"></a>
<A NAME="dbbinary"></A>dbbinary </B><I>[-o|-i pattern type] dest source</I> </DT>
<DD>The &quot;dbbinary&quot; command is used to create or retrieve binary opaque objects. One of <I>-i</I> or <I>-o</I> must be specified.</DD>
<dd>The <i>-o</i> option &quot;outputs&quot; or extracts a binary object from the database object <i>source</i> to a file called <i>dest</i>.</dd>
<dd>The <i>-i</i> option &quot;inputs&quot; or imports a file called <i>source</i> into a binary object called <i>dest</i> in the database. There are two additional arguments that must be specified with the <i>-i</i> option: pattern and type. Currently, only uniform binary objects (arrays of values) are supported. As a result, the <i>pattern</i> is always <i>u</i> for &quot;uniform&quot; pattern. The <i>type</i> can be one of the following:
<DD><i>f </I>-&gt; float</DD>
<DD><I>d </I>-&gt; double</DD>
<DD><I>c </I>-&gt; char (8 bit)</DD>
<DD><I>s </I>-&gt; short (16 bit)</DD>
<DD><I>i </I>-&gt; int (32 bit)</DD>
<DD><I>l </I>-&gt; long (64 bit)</DD>
<DD><I>C </I>-&gt; unsigned char (8 bit)</DD>
<DD><I>S </I>-&gt; unsigned short (16 bit)</DD>
<DD><I>I </I>-&gt; unsigned int (32 bit)</DD>
<DD><I>L </I>-&gt; unsigned long (64 bit)</DD>
<DD> </DD>
<DT><FONT SIZE=4>Examples: </DT></FONT>
<DD> <TT>mged&gt;</TT> <B>dbbinary -i -u c cmds /usr/brlcad/html/manuals/mged/mged_cmds.html</B></DD>
<DD>-- Create an opaque uniform binary object of characters with the name <I>cmds</I> that contains the contents of the file <I>/usr/brlcad/html/manuals/mged/mged_cmds.html.</I></DD>
<DD></DD>
<FONT SIZE=4><DD>Examples: </DD>
</FONT><DD></DD>
<TT><DD>mged&gt;</TT> <B>dbbinary -i -u c cmds /usr/brlcad/html/manuals/mged/mged_cmds.html</DD>
</B><DD>-- Create an opaque uniform binary object of characters with the name <I>cmds</I> that</DD>
<DD>contains the contents of the file <I>/usr/brlcad/html/manuals/mged/mged_cmds.html.</DD>
</I><DD></DD>
<TT><DD>mged&gt;</TT> <B>dbbinary -o /home/jim/cmds.html cmds</DD>
</B><DD>-- Copy the contents of the binary object named <I>cmds</I> into the file named</DD>
<I><DD>/home/jim/cmds.html.</DD>
</I><DT><HR ALIGN="RIGHT"></DT>
<DD><TT>mged&gt;</TT> <B>dbbinary -o /home/jim/cmds.html cmds</B></DD>
<DD>-- Copy the contents of the binary object named <I>cmds</I> into the file named <i>/home/jim/cmds.html.</i></DD>
</dl>
<DT><HR ALIGN="RIGHT"></DT>
<B><DT>db_glob</B> <I>cmd_string</DT>
</I><DD>Globs <I>cmd_string</I> against the MGED database resulting in an expanded command string.</DD>
<FONT SIZE=4><DT>Examples:</DT>
@@ -1171,9 +1176,9 @@ l r230 r231 r232 r233 r234 r235 r236 r237 r238 r239 <BR>
</FONT>
<B>
<DL>
<DT><A NAME="dbconcat"></A>dbconcat</B> <I>database_file</I> [<I>prefix</I>]</DT>
<DT><A NAME="dbconcat"></A><B>dbconcat</B> <I>-s/p database_file</I></DT>
<DD><p>The &quot;dbconcat&quot; command concatenates an existing <I>BRL-CAD</I> database to the database currently being edited. If a <I>prefix</I> is supplied, then all objects from the <I>database_file</I> will have <I>prefix</I> added to the beginning of their names. Note that each <I>BRL-CAD</I> object must have a unique name, so care must be taken not to &quot;dbconcat&quot; a database that has objects with names the same as objects in the current database. The <A HREF="#dup">dup</A> command may be used to check for duplicate names. If the <I>dup</I> command finds duplicate names, use the <I>prefix</I> option to both the <I>dup</I> and <I>dbconcat</I> commands to find a <I>prefix</I> that produces no duplicates. If duplicate names are encountered during the &quot;dbconcat&quot; process, computer-generated prefixes will be added to the object names coming from the <I>database_file</I> (but member names appearing in combinations will not be modified, so this is a dangerous practice and should be avoided).</p></DD>
<DT><A NAME="dbconcat"></A>dbconcat</B> <I>database_file</I> [<I>prefix</I>]</DT>
<DT><A NAME="dbconcat"></A><B>dbconcat</B> <I>-s/p database_file</I></DT>
<DD><p>The &quot;dbconcat&quot; command concatenates an existing <I>BRL-CAD</I> database to the database currently being edited. If a <I>prefix</I> is supplied, then all objects from the <I>database_file</I> will have <I>prefix</I> added to the beginning of their names. Note that each <I>BRL-CAD</I> object must have a unique name, so care must be taken not to &quot;dbconcat&quot; a database that has objects with names the same as objects in the current database. The <A HREF="#dup">dup</A> command may be used to check for duplicate names. If the <I>dup</I> command finds duplicate names, use the <I>prefix</I> option to both the <I>dup</I> and <I>dbconcat</I> commands to find a <I>prefix</I> that produces no duplicates. If duplicate names are encountered during the &quot;dbconcat&quot; process, computer-generated prefixes will be added to the object names coming from the <I>database_file</I> (but member names appearing in combinations will not be modified, so this is a dangerous practice and should be avoided).</p></DD>
<DD><p>The second form also concatenates an existing <I>BRL-CAD</I> database to the database currently being edited; however, no prefix is required. If the <I>-s</I> option is specified,then a computer-generated suffix is added wherever required to ensure unique object names. Similarly, the <I>-p</I> option will create computer-generated prefixes where needed. If a name in the existing database does not conflict with names in the database currently being edited, that name will not be changed. Member names appearing in combinations in the existing database will be modified if needed.</p></DD>
+23 -23
View File
@@ -1,27 +1,27 @@
.TH PIX 5 BRL-CAD
./" P I X . 5
./" BRL-CAD
./"
./" Copyright (c) 2005 United States Government as represented by
./" the U.S. Army Research Laboratory.
./"
./" This document is made available under the terms of the GNU Free
./" Documentation License or, at your option, under the terms of the
./" GNU General Public License as published by the Free Software
./" Foundation. Permission is granted to copy, distribute and/or
./" modify this document under the terms of the GNU Free Documentation
./" License, Version 1.2 or any later version published by the Free
./" Software Foundation; with no Invariant Sections, no Front-Cover
./" Texts, and no Back-Cover Texts. Permission is also granted to
./" redistribute this document under the terms of the GNU General
./" Public License; either version 2 of the License, or (at your
./" option) any later version.
./"
./" You should have received a copy of the GNU Free Documentation
./" License and/or the GNU General Public License along with this
./" document; see the file named COPYING for more information.
./"
./"./"./"
.\" P I X . 5
.\" BRL-CAD
.\"
.\" Copyright (c) 2005-2006 United States Government as represented by
.\" the U.S. Army Research Laboratory.
.\"
.\" This document is made available under the terms of the GNU Free
.\" Documentation License or, at your option, under the terms of the
.\" GNU General Public License as published by the Free Software
.\" Foundation. Permission is granted to copy, distribute and/or
.\" modify this document under the terms of the GNU Free Documentation
.\" License, Version 1.2 or any later version published by the Free
.\" Software Foundation; with no Invariant Sections, no Front-Cover
.\" Texts, and no Back-Cover Texts. Permission is also granted to
.\" redistribute this document under the terms of the GNU General
.\" Public License; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" You should have received a copy of the GNU Free Documentation
.\" License and/or the GNU General Public License along with this
.\" document; see the file named COPYING for more information.
.\"
.\".\".\"
.SH NAME
pix \- Color RGB image file format and utilities
.SH FORMAT
+23 -23
View File
@@ -1,27 +1,27 @@
.TH PLOT3 5 BRL-CAD
./" P L O T 3 . 5
./" BRL-CAD
./"
./" Copyright (c) 2005 United States Government as represented by
./" the U.S. Army Research Laboratory.
./"
./" This document is made available under the terms of the GNU Free
./" Documentation License or, at your option, under the terms of the
./" GNU General Public License as published by the Free Software
./" Foundation. Permission is granted to copy, distribute and/or
./" modify this document under the terms of the GNU Free Documentation
./" License, Version 1.2 or any later version published by the Free
./" Software Foundation; with no Invariant Sections, no Front-Cover
./" Texts, and no Back-Cover Texts. Permission is also granted to
./" redistribute this document under the terms of the GNU General
./" Public License; either version 2 of the License, or (at your
./" option) any later version.
./"
./" You should have received a copy of the GNU Free Documentation
./" License and/or the GNU General Public License along with this
./" document; see the file named COPYING for more information.
./"
./"./"./"
.\" P L O T 3 . 5
.\" BRL-CAD
.\"
.\" Copyright (c) 2005-2006 United States Government as represented by
.\" the U.S. Army Research Laboratory.
.\"
.\" This document is made available under the terms of the GNU Free
.\" Documentation License or, at your option, under the terms of the
.\" GNU General Public License as published by the Free Software
.\" Foundation. Permission is granted to copy, distribute and/or
.\" modify this document under the terms of the GNU Free Documentation
.\" License, Version 1.2 or any later version published by the Free
.\" Software Foundation; with no Invariant Sections, no Front-Cover
.\" Texts, and no Back-Cover Texts. Permission is also granted to
.\" redistribute this document under the terms of the GNU General
.\" Public License; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" You should have received a copy of the GNU Free Documentation
.\" License and/or the GNU General Public License along with this
.\" document; see the file named COPYING for more information.
.\"
.\".\".\"
.SH NAME
plot3 \- 3-D and color graphic plotting interface
.SH DESCRIPTION
+4
View File
@@ -123,6 +123,10 @@ brlcadinclude_wanted = \
zconf.h \
zlib.h
# headers used by multiple packages but still considered private
noinst_HEADERS = \
fbmsg.h
EXTRA_DIST = \
sed4
+1 -1
View File
@@ -1,7 +1,7 @@
/* A N I M . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* B N . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* B R L C A D . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+31 -45
View File
@@ -1,7 +1,7 @@
/* B U . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -56,16 +56,16 @@
* $Header$
*/
#ifndef SEEN_BU_H
#define SEEN_BU_H seen
#ifndef __BU_H__
#define __BU_H__
#include "common.h"
__BEGIN_DECLS
/* Included for Tcl_Interp definition */
#include "tcl.h"
__BEGIN_DECLS
#ifndef BU_EXPORT
# if defined(_WIN32) && !defined(__CYGWIN__) && defined(BRLCAD_DLL)
# ifdef BU_EXPORT_DLL
@@ -82,14 +82,6 @@ __BEGIN_DECLS
#define BU_H_VERSION "@(#)$Header$ (BRL)"
#ifdef HAVE_TIME_H
# include <time.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
/** define BU_DIR_SEPARATOR to the directory separator character
*/
@@ -124,23 +116,6 @@ __BEGIN_DECLS
#endif /* PATH_SEPARATOR */
/*----------------------------------------------------------------------*/
/*
* System library routines used by LIBBS.
* If header files are to be included, this should happen first,
* to prevent accidentally redefining important stuff.
*/
#if HAVE_STDLIB_H
/* NOTE: Nested includes, gets malloc(), offsetof(), etc */
# include <stdlib.h>
# include <stddef.h>
#else
extern char *malloc();
extern char *calloc();
extern char *realloc();
/**extern void free(); **/
#endif
/*
* BU_FLSTR Macro for getting a concatenated string of the current
* file and line number. Produces something of the form:
@@ -794,6 +769,8 @@ BU_EXPORT BU_EXTERN(struct bu_list *bu_list_pop, (struct bu_list *hp));
* eu = BU_LIST_MAIN_PTR( edgeuse, midway, l2 );
*
* eu1 = BU_LIST_MAIN_PTR(edgeuse, BU_LIST_FIRST(bu_list, &eg1->eu_hd2), l2);
*
* Files using BU_LIST_MAIN_PTR will need to include stddef.h
*/
#define BU_LIST_MAIN_PTR(_type, _ptr2, _name2) \
((struct _type *)(((char *)(_ptr2)) - offsetof(struct _type, _name2.magic)))
@@ -1039,7 +1016,7 @@ struct bu_mapped_file {
char *appl; /* bu_strdup() of tag for application using 'apbuf' */
genptr_t apbuf; /* opt: application-specific buffer */
long apbuflen; /* opt: application-specific buflen */
time_t modtime; /* date stamp, in case file is modified */
long modtime; /* date stamp, in case file is modified */
int uses; /* # ptrs to this struct handed out */
int dont_restat; /* 1=on subsequent opens, don't re-stat() */
};
@@ -1236,24 +1213,34 @@ BU_EXPORT extern int bu_debug;
* Definitions and data structures needed for routines that assign values
* to elements of arbitrary data structures, the layout of which is
* described by tables of "bu_structparse" structures.
*/
/**
* b u _ o f f s e t o f
* b u _ o f f s e t o f a r r a y
*
* The general problem of word-addressed hardware
* where (int *) and (char *) have different representations
* is handled in the parsing routines that use sp_offset,
* because of the limitations placed on compile-time initializers.
* The general problem of word-addressed hardware where (int *) and
* (char *) have different representations is handled in the parsing
* routines that use sp_offset, because of the limitations placed on
* compile-time initializers.
*
* Files using bu_offsetof or bu_offsetofarray will need to include
* stddef.h
*/
#if __STDC__ && !defined(ipsc860)
# define bu_offsetofarray(_t, _m) offsetof(_t, _m[0])
#else
# if !defined(offsetof)
# define bu_offsetof(_t, _m) (int)(&(((_t *)0)->_m))
# else
# define bu_offsetof(_t, _m) offsetof(_t, _m)
# endif
# define bu_offsetofarray(_t, _m) (int)( (((_t *)0)->_m))
#endif
#if !defined(offsetof)
# define bu_offsetof(_t, _m) (int)(&(((_t *)0)->_m))
#else
# define bu_offsetof(_t, _m) offsetof(_t, _m)
#endif
/*
/**
* b u _ b y t e o f f s e t
*
* Convert address of global data object into byte "offset" from address 0.
*
* Strictly speaking, the C language only permits initializers of the
@@ -1687,15 +1674,14 @@ BU_EXPORT BU_EXTERN(void bu_printfile,
BU_EXPORT BU_EXTERN(int bu_file_exists, (const char *path));
/* brlcad_path.c */
BU_EXPORT BU_EXTERN(const char *bu_argv0, (const char *path));
BU_EXPORT BU_EXTERN(const char *bu_getprogname, (void));
BU_EXPORT BU_EXTERN(void bu_setprogname, (const char *path));
BU_EXPORT BU_EXTERN(char *bu_brlcad_path, /* deprecated call */
(const char *rhs, int fail_quietly));
BU_EXPORT BU_EXTERN(char *bu_brlcad_root,
(const char *rhs, int fail_quietly));
BU_EXPORT BU_EXTERN(char *bu_brlcad_data,
(const char *rhs, int fail_quietly));
BU_EXPORT BU_EXTERN(const char *bu_argv0,
(const char *path));
/* fopen_uniq */
BU_EXPORT BU_EXTERN(FILE *bu_fopen_uniq,
@@ -2560,7 +2546,7 @@ BU_EXPORT BU_EXTERN(struct bu_hash_entry *bu_hash_tbl_next,
__END_DECLS
#endif /* SEEN_BU_H */
#endif /* __BU_H__ */
/*
* Local Variables:
+8 -6
View File
@@ -1,7 +1,7 @@
/* C M D . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -21,11 +21,13 @@
/** @file cmd.h
*
*/
#ifndef SEEN_CMD_H
#define SEEN_CMD_H
#ifndef __CMD_H__
#define __CMD_H__
#ifdef USE_SYS_TIME_H
#include <sys/time.h>
#include "common.h"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <time.h>
#include "bu.h"
@@ -70,7 +72,7 @@ BU_EXPORT BU_EXTERN(int bu_cmdhist_prev,
BU_EXPORT BU_EXTERN(int cho_open_tcl,
());
#endif /* SEEN_CMD_H */
#endif /* __CMD_H__ */
/*
* Local Variables:
+8 -7
View File
@@ -1,7 +1,7 @@
/* C O M M O N . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -43,14 +43,15 @@
#define __COMMON_H__
/* include the venerable config.h file. use a pregenerated one for
* windows when we cannot autogenerate it easily. */
#ifdef _WIN32
* windows when we cannot autogenerate it easily. do not include
* config.h if this file has been installed. (public header files
* should not use config defines)
*/
#ifdef HAVE_CONFIG_H
# ifdef _WIN32
# include "config_win.h"
#else
# ifdef HAVE_CONFIG_H
# include "brlcad_config.h"
# else
# include <brlcad/brlcad_config.h>
# include "brlcad_config.h"
# endif
#endif /* _WIN32 */
+1 -1
View File
@@ -1,7 +1,7 @@
/* C O M P A T 4 . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* C O N F . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+3 -3
View File
@@ -1,7 +1,7 @@
/* C O N F I G _ W I N . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -50,8 +50,8 @@
#endif
#define MAJOR_VERSION 7
#define MINOR_VERSION 6
#define PATCH_VERSION 7
#define MINOR_VERSION 7
#define PATCH_VERSION 0
#define MAJOR_VERSION_STRING EXPAND_IN_STRING(MAJOR_VERSION)
#define MINOR_VERSION_STRING EXPAND_IN_STRING(MINOR_VERSION)
#define PATCH_VERSION_STRING EXPAND_IN_STRING(PATCH_VERSION)
+1 -1
View File
@@ -1,7 +1,7 @@
/* D B . H
* BRL-CAD
*
* Copyright (C) 1985-2005 United States Government as represented by
* Copyright (c) 1985-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D B 5 . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - N U L L . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - X . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - G L X . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - O G L . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - P E X . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - P L O T . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M - P S . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M _ C O L O R . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* D M _ X V A R S . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+18 -26
View File
@@ -1,7 +1,7 @@
/* F B . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -35,25 +35,27 @@
#include "fbio.h"
/* Needed for fd_set */
#if defined (HAVE_SYS_SELECT_H)
# include <sys/select.h>
/* Needed for fd_set, avoid including sys/select.h outright since it
* conflicts on some systems (e.g. freebsd4).
*
* XXX would be nice to decouple this interface from fd_set as it's
* only used in one place right now.
*/
#if defined(HAVE_SYS_TYPES_H)
# include <sys/types.h>
#endif
#if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>
#endif
#if defined(HAVE_UNISTD_H)
# include <unistd.h>
#else
# if defined(HAVE_SYS_TYPES_H)
# include <sys/types.h>
# endif
# if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>
# endif
# if defined(HAVE_UNISTD_H)
# include <unistd.h>
# else
# if defined(HAVE_SYS_UNISTD_H)
# include <sys/unistd.h>
# endif
# if defined(HAVE_SYS_UNISTD_H)
# include <sys/unistd.h>
# endif
#endif
/* Library entry points which are macros. */
#define fb_gettype(_ifp) (_ifp->if_type)
#define fb_getwidth(_ifp) (_ifp->if_width)
@@ -228,16 +230,6 @@ FB_EXPORT extern int fb_refresh(FBIO *ifp, int x, int y, int w, int h);
/* vers.c (created by libfb/Cakefile) */
FB_EXPORT extern char fb_version[];
/* server.c */
FB_EXPORT extern FBIO *fb_server_fbp;
FB_EXPORT extern fd_set *fb_server_select_list;
FB_EXPORT extern int *fb_server_max_fd;
FB_EXPORT extern int fb_server_got_fb_free; /* !0 => we have received an fb_free */
FB_EXPORT extern int fb_server_refuse_fb_free; /* !0 => don't accept fb_free() */
FB_EXPORT extern int fb_server_retain_on_close; /* !0 => we are holding a reusable FB open */
FB_EXPORT extern const struct pkg_switch fb_server_pkg_switch[];
#endif /* FB_H */
/*
+1 -1
View File
@@ -1,7 +1,7 @@
/* F B I O . H
* BRL-CAD
*
* Copyright (C) 2005 United States Government as represented by
* Copyright (c) 2005-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+4 -8
View File
@@ -1,7 +1,7 @@
/* P K G T Y P E S . H
/* F B M S G . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -18,13 +18,11 @@
* License along with this file; see the file named COPYING for more
* information.
*/
/** \addtogroup libfb */
/*@{*/
/** @file pkgtypes.h
/** @file fbmsg.h
* Types of packages used for the remote frame buffer
* communication between libfb/if_remote.c and rfbd/rfbd.c.
* communication between libfb/if_remote.c and fbserv/fbserv.c.
* This file is shared by those two modules.
*
* Authors -
@@ -35,8 +33,6 @@
* SECAD/VLD Computing Consortium, Bldg 394
* The U. S. Army Ballistic Research Laboratory
* Aberdeen Proving Ground, Maryland 21005
*
* $Header$
*/
/*@}*/
+1 -1
View File
@@ -1,7 +1,7 @@
/* F B S E R V _ O B J . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* L I B T E R M I O . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* L I G H T . H
* BRL-CAD
*
* Copyright (C) 1990-2005 United States Government as represented by
* Copyright (c) 1990-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* M A C H I N E . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* M A T E R . H
* BRL-CAD
*
* Copyright (C) 1985-2005 United States Government as represented by
* Copyright (c) 1985-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* M S R . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* N M G . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* N O A L I A S - P R A G . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* N O A L I A S . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* N U R B . H
* BRL-CAD
*
* Copyright (C) 1991-2005 United States Government as represented by
* Copyright (c) 1991-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* O P T I C A L . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* P H O T O N M A P . H
* BRL-CAD
*
* Copyright (C) 2002-2005 United States Government as represented by
* Copyright (c) 2002-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+3 -3
View File
@@ -1,7 +1,7 @@
/* P K G . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -73,7 +73,7 @@ struct pkg_header {
#define PKG_STREAMLEN (32*1024)
struct pkg_conn {
int pkc_fd; /* TCP connection fd */
struct pkg_switch *pkc_switch; /* Array of message handlers */
const struct pkg_switch *pkc_switch; /* Array of message handlers */
void (*pkc_errlog)(); /* Error message logger */
struct pkg_header pkc_hdr; /* hdr of cur msg */
long pkc_len; /* pkg_len, in host order */
@@ -108,7 +108,7 @@ PKG_EXPORT extern int pkg_suckin(register struct pkg_conn *);
PKG_EXPORT extern struct pkg_conn *pkg_open();
PKG_EXPORT extern struct pkg_conn *pkg_transerver();
PKG_EXPORT extern int pkg_permserver();
PKG_EXPORT extern struct pkg_conn *pkg_getclient(int fd, struct pkg_switch *switchp, void (*errlog) (/* ??? */), int nodelay);
PKG_EXPORT extern struct pkg_conn *pkg_getclient(int fd, const struct pkg_switch *switchp, void (*errlog) (/* ??? */), int nodelay);
PKG_EXPORT extern void pkg_close();
PKG_EXPORT extern int pkg_send();
PKG_EXPORT extern int pkg_2send();
+1 -1
View File
@@ -1,7 +1,7 @@
/* P L A S T I C . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* P L O T 3 . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+30 -9
View File
@@ -1,7 +1,7 @@
/* R A Y T R A C E . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
@@ -2892,6 +2892,10 @@ RT_EXPORT BU_EXTERN(int db5_import_attributes,
(struct bu_attribute_value_set *avs,
const struct bu_external *ap));
RT_EXPORT BU_EXTERN(void db5_export_attributes,
(struct bu_external *ap,
const struct bu_attribute_value_set *avs));
RT_EXPORT BU_EXTERN(int db5_get_raw_internal_fp,
(struct db5_raw_internal *rip,
FILE *fp));
@@ -3150,11 +3154,10 @@ RT_EXPORT BU_EXTERN(int rt_extrude_import5,
const int minor_type));
/* db_lookup.c */
RT_EXPORT BU_EXTERN(int db_get_directory_size,
(const struct db_i *dbip));
RT_EXPORT BU_EXTERN(void db_ck_directory,
(const struct db_i *dbip));
/* db_inmem.c */
RT_EXPORT BU_EXTERN(struct db_i * db_open_inmem, (void));
RT_EXPORT BU_EXTERN(struct db_i * db_create_inmem, (void));
RT_EXPORT BU_EXTERN(void db_inmem,
(struct directory *dp,
@@ -3162,6 +3165,12 @@ RT_EXPORT BU_EXTERN(void db_inmem,
int flags,
struct db_i *dbip));
/* db_lookup.c */
RT_EXPORT BU_EXTERN(int db_get_directory_size,
(const struct db_i *dbip));
RT_EXPORT BU_EXTERN(void db_ck_directory,
(const struct db_i *dbip));
RT_EXPORT BU_EXTERN(int db_is_directory_non_empty,
(const struct db_i *dbip));
@@ -3230,10 +3239,15 @@ RT_EXPORT BU_EXTERN(int db_regexp_match_all,
struct db_i *dbip,
const char *pattern));
/* db_alloc.c */
/* db_flags.c */
RT_EXPORT BU_EXTERN(int db_flags_internal,
(const struct rt_db_internal *intern));
RT_EXPORT BU_EXTERN(int db_flags_raw_internal,
(const struct db5_raw_internal *intern));
/* db_alloc.c */
/* allocate "count" granules */
RT_EXPORT BU_EXTERN(int db_alloc,
(struct db_i *,
@@ -6498,7 +6512,10 @@ RT_EXPORT BU_EXTERN(void dgo_color_soltab,
RT_EXPORT BU_EXTERN(void dgo_drawH_part2,
());
RT_EXPORT BU_EXTERN(void dgo_eraseobjall_callback,
());
(struct db_i *dbip,
Tcl_Interp *interp,
struct directory *dp,
int notify));
RT_EXPORT BU_EXTERN(void dgo_eraseobjpath,
());
RT_EXPORT BU_EXTERN(void dgo_impending_wdb_close,
@@ -6506,7 +6523,11 @@ RT_EXPORT BU_EXTERN(void dgo_impending_wdb_close,
RT_EXPORT BU_EXTERN(int dgo_invent_solid,
());
RT_EXPORT BU_EXTERN(void dgo_notify,
());
(struct dg_obj *dgop,
Tcl_Interp *interp));
RT_EXPORT BU_EXTERN(void dgo_notifyWdb,
(struct rt_wdb *wdbp,
Tcl_Interp *interp));
RT_EXPORT BU_EXTERN(void dgo_zapall,
());
+1 -1
View File
@@ -1,7 +1,7 @@
/* R E D B L A C K . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1
View File
@@ -33,6 +33,7 @@
#include "rle_config.h" /* Configuration parameters. */
#include <stdio.h> /* Declare FILE. */
#include <stdlib.h>
#ifdef c_plusplus
#define USE_PROTOTYPES
+1
View File
@@ -120,3 +120,4 @@ extern char *getenv();
* compilation support issues. e.g. sys_errlist on solaris.
*/
#include "common.h"
+1 -1
View File
@@ -1,7 +1,7 @@
/* R T G E O M . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* R T L I S T . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* R T P R I V A T E . H
* BRL-CAD
*
* Copyright (C) 1985-2005 United States Government as represented by
* Copyright (c) 1985-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* R T S E R V E R . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* R T S T R I N G . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S H A D E F U N C S . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S H A D E W O R K . H
* BRL-CAD
*
* Copyright (C) 1993-2005 United States Government as represented by
* Copyright (c) 1993-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S H O R T V E C T - P R . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S H O R T V E C T . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S O L I D . H
* BRL-CAD
*
* Copyright (C) 1985-2005 United States Government as represented by
* Copyright (c) 1985-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S P E C T R U M . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* S P M . H
* BRL-CAD
*
* Copyright (C) 1986-2005 United States Government as represented by
* Copyright (c) 1986-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* T C L C A D . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* V E C T F O N T . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* V F O N T - I F . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* V M A T H . H
* BRL-CAD
*
* Copyright (C) 2004-2005 United States Government as represented by
* Copyright (c) 2004-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
+1 -1
View File
@@ -1,7 +1,7 @@
/* W D B . H
* BRL-CAD
*
* Copyright (C) 1988-2005 United States Government as represented by
* Copyright (c) 1988-2006 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
-52
View File
@@ -1,52 +0,0 @@
/*
* C O N S T . C
*
* Constants used by the ray tracing library.
*
* Source -
* SECAD/VLD Computing Consortium, Bldg 394
* The U. S. Army Ballistic Research Laboratory
* Aberdeen Proving Ground, Maryland 21005
*
* Copyright Notice -
* This software is Copyright (C) 1989 by the United States Army.
* All rights reserved.
*/
#ifndef lint
static char RCSmat[] = "@(#)$Header$ (BRL)";
#endif
#include "conf.h"
#include <stdio.h>
#include "machine.h"
#include "vmath.h"
#include "raytrace.h"
CONST double rt_pi = 3.14159265358979323846; /* pi */
CONST double rt_twopi = 6.28318530717958647692; /* pi*2 */
CONST double rt_halfpi = 1.57079632679489661923; /* pi/2 */
CONST double rt_quarterpi=0.78539816339744830961; /* pi/4 */
CONST double rt_invpi = 0.318309886183790671538; /* 1/pi */
CONST double rt_inv2pi = 0.159154943091895335769; /* 1/(pi*2) */
CONST double rt_inv4pi = 0.07957747154594766788; /* 1/(pi*4) */
CONST double rt_inv255 = 1.0/255.0;
CONST double rt_degtorad = 0.0174532925199433; /* (pi*2)/360 */
CONST double rt_radtodeg = 57.29577951308230698802; /* 360/(pi*2) */
CONST mat_t rt_identity = {
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
};
#ifdef ipsc860
/* Hack to work around the broken iPSC/860 loader. It doesn't
* see the definition in global.c, probably because there is no
* .text or .data there that it needs.
*/
struct rt_g rt_g;
#endif
-170
View File
@@ -1,170 +0,0 @@
/*
* H I S T . C
*
* General purpose histogram handling routines
*
* The macro RT_HISTOGRAM_TALLY is used to record items that
* live in a single "bin", while the subroutine rt_hist_range()
* is used to record items that may extend across multiple "bin"s.
*
* Author -
* Michael John Muuss
*
* Source -
* SECAD/VLD Computing Consortium, Bldg 394
* The U. S. Army Ballistic Research Laboratory
* Aberdeen Proving Ground, Maryland 21005-5066
*
* Copyright Notice -
* This software is Copyright (C) 1990 by the United States Army.
* All rights reserved.
*/
#ifndef lint
static char RCShist[] = "@(#)$Header$ (BRL)";
#endif
#include "conf.h"
#include <stdio.h>
#include <math.h>
#include "machine.h"
#include "vmath.h"
#include "raytrace.h"
#include "./debug.h"
/*
* R T _ H I S T _ F R E E
*/
void
rt_hist_free( histp )
struct histogram *histp;
{
/* The 'clean' command can be called before the first rt_prep(),
* resulting in zero magic numbers in rtip->rti_hist_cellsize.
*/
if( histp && histp->magic == 0 ) return;
RT_CK_HISTOGRAM(histp);
if( histp->hg_bins )
rt_free( (char *)histp->hg_bins, "old histogram bins");
histp->hg_bins = (long *)0;
histp->hg_nbins = 0;
histp->magic = -1; /* sanity */
}
/*
* R T _ H I S T _ I N I T
*
* Initialize a histogram structure.
* It is expected that the structure is junk upon entry.
*/
void
rt_hist_init( histp, min, max, nbins )
struct histogram *histp;
fastf_t min, max;
int nbins;
{
if( max <= min ) max = min+1;
if( nbins < 2 ) {
nbins = 2;
} else if( nbins > 10000 ) {
nbins = 10000;
}
histp->hg_min = floor(min);
histp->hg_max = ceil(max);
histp->hg_nbins = nbins;
/* When max-min <= nbins, clumpsize should be 1 */
histp->hg_clumpsize = ((max-min)/nbins)+1;
if( histp->hg_clumpsize <= 0 ) histp->hg_clumpsize = 1;
histp->hg_nsamples = 0L;
histp->hg_bins = (long *)rt_calloc( nbins+1, sizeof(long), "histogram bins");
histp->magic = RT_HISTOGRAM_MAGIC;
}
/*
* R T _ H I S T _ R A N G E
*/
void
rt_hist_range( hp, low, high )
register struct histogram *hp;
fastf_t low;
fastf_t high;
{
long a;
long b;
register int i;
RT_CK_HISTOGRAM(hp);
if( low <= hp->hg_min )
a = 0;
else
a = (low - hp->hg_min) / hp->hg_clumpsize;
if( high >= hp->hg_max )
b = hp->hg_nbins-1;
else
b = (high - hp->hg_min) / hp->hg_clumpsize;
if( a < 0 || b >= hp->hg_nbins ) rt_bomb("rt_hist_range() out of range\n");
for( i=a; i <= b; i++ ) {
hp->hg_bins[i]++;
}
hp->hg_nsamples++;
}
/*
* R T _ H I S T _ P R
*/
void
rt_hist_pr( histp, title )
register struct histogram *histp;
CONST char *title;
{
register int i;
long maxcount;
static CONST char marks[] = "################################################################";
#define NMARKS 50
char buf[256];
int percent;
int mark_count;
int val;
int nbins;
RT_CK_HISTOGRAM(histp);
/* Find entry with highest count */
maxcount = 0L;
for( i=0; i<histp->hg_nbins; i++ ) {
if( histp->hg_bins[i] > maxcount )
maxcount = histp->hg_bins[i];
}
if( maxcount <= 0 ) maxcount = 1;
/* Supress trailing bins with zero counts. nbins s/b >= 1 */
for( nbins = histp->hg_nbins-1; nbins >= 1; nbins-- )
if(histp->hg_bins[nbins] > 0) break;
/* 12345678 12345678 123 .... */
rt_log("\nHistogram of %s\nmin=%g, max=%g, nbins=%d, clumpsize=%g\n%d samples collected, highest count was %d\n\n Value Count Rel%%| Bar Graph\n",
title,
histp->hg_min, histp->hg_max,
histp->hg_nbins, histp->hg_clumpsize,
histp->hg_nsamples, maxcount );
/* Print each bin. Final bins with zero counts are supressed. */
for( i=0; i <= nbins; i++ ) {
percent = (int)(((double)histp->hg_bins[i])*100.0/maxcount);
mark_count = percent*NMARKS/100;
if( mark_count <= 0 ) {
buf[0] = '\0';
} else {
bcopy( marks, buf, mark_count );
buf[mark_count] = '\0';
}
val = histp->hg_min + i*histp->hg_clumpsize;
rt_log("%8d %8d %3d |%s\n",
val,
histp->hg_bins[i], percent, buf );
}
}
-2379
View File
File diff suppressed because it is too large Load Diff
-551
View File
@@ -1,551 +0,0 @@
/*
* P O L Y L I B . C
*
* Library for dealing with polynomials.
*
* Functions -
* rt_poly_mul Multiply two polynomials
* rt_poly_scale Scale a polynomial
* rt_poly_add Add two polynomials
* rt_poly_sub Subtract two polynomials
* rt_poly_synthetic_division Divide 1 poly into another using Synthetic Division
* quadratic Solve quadratic formula
* cubic Solve cubic forumla
* rt_pr_poly Print a polynomial
*
* Author -
* Jeff Hanes
*
* Source -
* SECAD/VLD Computing Consortium, Bldg 394
* The U. S. Army Ballistic Research Laboratory
* Aberdeen Proving Ground, Maryland 21005
*
* Copyright Notice -
* This software is Copyright (C) 1985 by the United States Army.
* All rights reserved.
*/
#ifndef lint
static char RCSpolylib[] = "@(#)$Header$ (BRL)";
#endif
#include "conf.h"
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include "machine.h"
#include "externs.h"
#include "vmath.h"
#include "raytrace.h"
#include "rtstring.h"
#include "./polyno.h"
#include "./complex.h"
extern void rt_pr_poly();
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define PI_DIV_3 (M_PI/3.0)
static poly Zpoly = { 0, 0.0 };
/*
* rt_poly_mul -- multiply two polynomials
*/
poly *
rt_poly_mul(m1,m2,product)
register poly *m1, *m2, *product;
{
if( m1->dgr == 1 && m2->dgr == 1 ) {
product->dgr = 2;
product->cf[0] = m1->cf[0] * m2->cf[0];
product->cf[1] = m1->cf[0] * m2->cf[1] +
m1->cf[1] * m2->cf[0];
product->cf[2] = m1->cf[1] * m2->cf[1];
return(product);
}
if( m1->dgr == 2 && m2->dgr == 2 ) {
product->dgr = 4;
product->cf[0] = m1->cf[0] * m2->cf[0];
product->cf[1] = m1->cf[0] * m2->cf[1] +
m1->cf[1] * m2->cf[0];
product->cf[2] = m1->cf[0] * m2->cf[2] +
m1->cf[1] * m2->cf[1] +
m1->cf[2] * m2->cf[0];
product->cf[3] = m1->cf[1] * m2->cf[2] +
m1->cf[2] * m2->cf[1];
product->cf[4] = m1->cf[2] * m2->cf[2];
return(product);
}
/* Not one of the common (or easy) cases. */
{
register int ct1, ct2;
*product = Zpoly;
/* If the degree of the product will be larger than the
* maximum size allowed in "polyno.h", then return a null
* pointer to indicate failure.
*/
if ( (product->dgr = m1->dgr + m2->dgr) > MAXP )
return PM_NULL;
for ( ct1=0; ct1 <= m1->dgr; ++ct1 ){
for ( ct2=0; ct2 <= m2->dgr; ++ct2 ){
product->cf[ct1+ct2] +=
m1->cf[ct1] * m2->cf[ct2];
}
}
}
return product;
}
/*
* rt_poly_scale -- scale a polynomial
*/
poly *
rt_poly_scale(eqn,factor)
register poly *eqn;
double factor;
{
register int cnt;
for ( cnt=0; cnt <= eqn->dgr; ++cnt ){
eqn->cf[cnt] *= factor;
}
return eqn;
}
/*
* rt_poly_add -- add two polynomials
*/
poly *
rt_poly_add(poly1,poly2,sum)
register poly *poly1, *poly2, *sum;
{
LOCAL poly tmp;
register int i, offset;
offset = Abs(poly1->dgr - poly2->dgr);
tmp = Zpoly;
if ( poly1->dgr >= poly2->dgr ){
*sum = *poly1;
for ( i=0; i <= poly2->dgr; ++i ){
tmp.cf[i+offset] = poly2->cf[i];
}
} else {
*sum = *poly2;
for ( i=0; i <= poly1->dgr; ++i ){
tmp.cf[i+offset] = poly1->cf[i];
}
}
for ( i=0; i <= sum->dgr; ++i ){
sum->cf[i] += tmp.cf[i];
}
return sum;
}
/*
* rt_poly_sub -- subtract two polynomials
*/
poly *
rt_poly_sub(poly1,poly2,diff)
register poly *poly1, *poly2, *diff;
{
LOCAL poly tmp;
register int i, offset;
offset = Abs(poly1->dgr - poly2->dgr);
*diff = Zpoly;
tmp = Zpoly;
if ( poly1->dgr >= poly2->dgr ){
*diff = *poly1;
for ( i=0; i <= poly2->dgr; ++i ){
tmp.cf[i+offset] = poly2->cf[i];
}
} else {
diff->dgr = poly2->dgr;
for ( i=0; i <= poly1->dgr; ++i ){
diff->cf[i+offset] = poly1->cf[i];
}
tmp = *poly2;
}
for ( i=0; i <= diff->dgr; ++i ){
diff->cf[i] -= tmp.cf[i];
}
return diff;
}
/* >>> s y n D i v ( ) <<<
* Divides any polynomial into any other polynomial using synthetic
* division. Both polynomials must have real coefficients.
*/
void
rt_poly_synthetic_division(dvdend,dvsor,quo,rem)
register poly *dvdend, *dvsor, *quo, *rem;
{
register int div;
register int n;
*quo = *dvdend;
*rem = Zpoly;
if ((quo->dgr = dvdend->dgr - dvsor->dgr) < 0)
quo->dgr = -1;
if ((rem->dgr = dvsor->dgr - 1) > dvdend->dgr)
rem->dgr = dvdend->dgr;
for ( n=0; n <= quo->dgr; ++n){
quo->cf[n] /= dvsor->cf[0];
for ( div=1; div <= dvsor->dgr; ++div){
quo->cf[n+div] -= quo->cf[n] * dvsor->cf[div];
}
}
for ( n=1; n<=(rem->dgr+1); ++n){
rem->cf[n-1] = quo->cf[quo->dgr+n];
quo->cf[quo->dgr+n] = 0;
}
}
/* >>> q u a d r a t i c ( ) <<<
*
* Uses the quadratic formula to find the roots (in `complex' form)
* of any quadratic equation with real coefficients.
*/
void
rt_poly_quadratic_roots( quadrat, root )
register poly *quadrat;
register complex root[];
{
LOCAL fastf_t discrim, denom, rad;
if( NEAR_ZERO( quadrat->cf[0], SMALL ) ) {
/* root = -cf[2] / cf[1] */
if( NEAR_ZERO( quadrat->cf[1], SMALL ) ) {
/* No solution. Now what? */
rt_log("rt_poly_quadratic_roots(): ERROR, no solution\n");
return;
}
/* Fake it as a repeated root. */
root[0].re = root[1].re = -quadrat->cf[2]/quadrat->cf[1];
root[0].im = root[1].im = 0.0;
return;
}
/* What to do if cf[1] > SQRT_MAX_FASTF ? */
discrim = quadrat->cf[1]*quadrat->cf[1] - 4.0* quadrat->cf[0]*quadrat->cf[2];
denom = 0.5 / quadrat->cf[0];
if ( discrim >= 0.0 ){
rad = sqrt( discrim );
root[0].re = ( -quadrat->cf[1] + rad ) * denom;
root[1].re = ( -quadrat->cf[1] - rad ) * denom;
root[1].im = root[0].im = 0.0;
} else {
root[1].re = root[0].re = -quadrat->cf[1] * denom;
root[1].im = -(root[0].im = sqrt( -discrim ) * denom);
}
}
#define SQRT3 1.732050808
#define THIRD 0.333333333333333333333333333
#define INV_TWENTYSEVEN 0.037037037037037037037037037
#define CUBEROOT( a ) (( (a) >= 0.0 ) ? pow( a, THIRD ) : -pow( -(a), THIRD ))
/* >>> c u b i c ( ) <<<
*
* Uses the cubic formula to find the roots ( in `complex' form )
* of any cubic equation with real coefficients.
*
* to solve a polynomial of the form:
*
* X**3 + c1*X**2 + c2*X + c3 = 0,
*
* first reduce it to the form:
*
* Y**3 + a*Y + b = 0,
*
* where
* Y = X + c1/3,
* and
* a = c2 - c1**2/3,
* b = ( 2*c1**3 - 9*c1*c2 + 27*c3 )/27.
*
* Then we define the value delta, D = b**2/4 + a**3/27.
*
* If D > 0, there will be one real root and two conjugate
* complex roots.
* If D = 0, there will be three real roots at least two of
* which are equal.
* If D < 0, there will be three unequal real roots.
*
* Returns 1 for success, 0 for fail.
*/
static int expecting_fpe = 0;
static jmp_buf abort_buf;
HIDDEN void rt_catch_FPE(sig)
int sig;
{
if( !expecting_fpe )
rt_bomb("unexpected SIGFPE!");
if( !rt_g.rtg_parallel )
(void)signal(SIGFPE, rt_catch_FPE); /* Renew handler */
longjmp(abort_buf, 1); /* return error code */
}
int
rt_poly_cubic_roots( eqn, root )
register poly *eqn;
register complex root[];
{
LOCAL fastf_t a, b, c1, c1_3rd, delta;
register int i;
static int first_time = 1;
if( !rt_g.rtg_parallel ) {
/* abort_buf is NOT parallel! */
if( first_time ) {
first_time = 0;
(void)signal(SIGFPE, rt_catch_FPE);
}
expecting_fpe = 1;
if( setjmp( abort_buf ) ) {
(void)signal(SIGFPE, rt_catch_FPE);
rt_log("rt: rt_poly_cubic_roots() Floating Point Error\n");
return(0); /* FAIL */
}
}
c1 = eqn->cf[1];
if( Abs(c1) > SQRT_MAX_FASTF ) return(0); /* FAIL */
c1_3rd = c1 * THIRD;
a = eqn->cf[2] - c1*c1_3rd;
if( Abs(a) > SQRT_MAX_FASTF ) return(0); /* FAIL */
b = (2.0*c1*c1*c1 - 9.0*c1*eqn->cf[2] + 27.0*eqn->cf[3])*INV_TWENTYSEVEN;
if( Abs(b) > SQRT_MAX_FASTF ) return(0); /* FAIL */
if( (delta = a*a) > SQRT_MAX_FASTF ) return(0); /* FAIL */
delta = b*b*0.25 + delta*a*INV_TWENTYSEVEN;
if ( delta > 0.0 ){
LOCAL fastf_t r_delta, A, B;
r_delta = sqrt( delta );
A = B = -0.5 * b;
A += r_delta;
B -= r_delta;
A = CUBEROOT( A );
B = CUBEROOT( B );
root[2].re = root[1].re = -0.5 * ( root[0].re = A + B );
root[0].im = 0.0;
root[2].im = -( root[1].im = (A - B)*SQRT3*0.5 );
} else if ( delta == 0.0 ){
LOCAL fastf_t b_2;
b_2 = -0.5 * b;
root[0].re = 2.0* CUBEROOT( b_2 );
root[2].re = root[1].re = -0.5 * root[0].re;
root[2].im = root[1].im = root[0].im = 0.0;
} else {
LOCAL fastf_t phi, fact;
LOCAL fastf_t cs_phi, sn_phi_s3;
if( a >= 0.0 ) {
fact = 0.0;
phi = 0.0;
cs_phi = 1.0; /* cos( phi ); */
sn_phi_s3 = 0.0; /* sin( phi ) * SQRT3; */
} else {
FAST fastf_t f;
a *= -THIRD;
fact = sqrt( a );
if( (f = b * (-0.5) / (a*fact)) >= 1.0 ) {
phi = 0.0;
cs_phi = 1.0; /* cos( phi ); */
sn_phi_s3 = 0.0; /* sin( phi ) * SQRT3; */
} else if( f <= -1.0 ) {
phi = PI_DIV_3;
cs_phi = cos( phi );
sn_phi_s3 = sin( phi ) * SQRT3;
} else {
phi = acos( f ) * THIRD;
cs_phi = cos( phi );
sn_phi_s3 = sin( phi ) * SQRT3;
}
}
root[0].re = 2.0*fact*cs_phi;
root[1].re = fact*( sn_phi_s3 - cs_phi);
root[2].re = fact*( -sn_phi_s3 - cs_phi);
root[2].im = root[1].im = root[0].im = 0.0;
}
for ( i=0; i < 3; ++i )
root[i].re -= c1_3rd;
expecting_fpe = 0;
return(1); /* OK */
}
/* >>> q u a r t i c ( ) <<<
*
* Uses the quartic formula to find the roots ( in `complex' form )
* of any quartic equation with real coefficients.
*
* Returns 1 for success, 0 for fail.
*/
int
rt_poly_quartic_roots( eqn, root )
register poly *eqn;
register complex root[];
{
LOCAL poly cube, quad1, quad2;
LOCAL complex u[3];
LOCAL fastf_t U, p, q, q1, q2;
#define Max3(a,b,c) ((c)>((a)>(b)?(a):(b)) ? (c) : ((a)>(b)?(a):(b)))
cube.dgr = 3;
cube.cf[0] = 1.0;
cube.cf[1] = -eqn->cf[2];
cube.cf[2] = eqn->cf[3]*eqn->cf[1]
- 4*eqn->cf[4];
cube.cf[3] = -eqn->cf[3]*eqn->cf[3]
- eqn->cf[4]*eqn->cf[1]*eqn->cf[1]
+ 4*eqn->cf[4]*eqn->cf[2];
if( !rt_poly_cubic_roots( &cube, u ) ) {
return( 0 ); /* FAIL */
}
if ( u[1].im != 0.0 ){
U = u[0].re;
} else {
U = Max3( u[0].re, u[1].re, u[2].re );
}
p = eqn->cf[1]*eqn->cf[1]*0.25 + U - eqn->cf[2];
U *= 0.5;
q = U*U - eqn->cf[4];
if( p < 0 ) {
if( p < -1.0e-8 ) {
return(0); /* FAIL */
}
p = 0;
} else {
p = sqrt( p );
}
if( q < 0 ) {
if( q < -1.0e-8 ) {
return(0); /* FAIL */
}
q = 0;
} else {
q = sqrt( q );
}
quad1.dgr = quad2.dgr = 2;
quad1.cf[0] = quad2.cf[0] = 1.0;
quad1.cf[1] = eqn->cf[1]*0.5;
quad2.cf[1] = quad1.cf[1] + p;
quad1.cf[1] -= p;
q1 = U - q;
q2 = U + q;
p = quad1.cf[1]*q2 + quad2.cf[1]*q1 - eqn->cf[3];
if( Abs( p ) < 1.0e-8){
quad1.cf[2] = q1;
quad2.cf[2] = q2;
} else {
q = quad1.cf[1]*q1 + quad2.cf[1]*q2 - eqn->cf[3];
if( Abs( q ) < 1.0e-8 ){
quad1.cf[2] = q2;
quad2.cf[2] = q1;
} else {
return(0); /* FAIL */
}
}
rt_poly_quadratic_roots( &quad1, root );
rt_poly_quadratic_roots( &quad2, &root[2] );
return(1); /* SUCCESS */
}
/*
* R T _ P R _ P O L Y
*/
void
rt_pr_poly(title, eqn)
char *title;
register poly *eqn;
{
register int n;
register int exp;
struct rt_vls str;
char buf[48];
rt_vls_init( &str );
rt_vls_extend( &str, 196 );
rt_vls_strcat( &str, title );
sprintf(buf, " polynomial, degree = %d\n", eqn->dgr);
rt_vls_strcat( &str, buf );
exp = eqn->dgr;
for ( n=0; n<=eqn->dgr; n++,exp-- ) {
register double coeff = eqn->cf[n];
if( n > 0 ) {
if( coeff < 0 ) {
rt_vls_strcat( &str, " - " );
coeff = -coeff;
} else {
rt_vls_strcat( &str, " + " );
}
}
sprintf( buf, "%g", coeff );
rt_vls_strcat( &str, buf );
if( exp > 1 ) {
sprintf( buf, " *X^%d", exp );
rt_vls_strcat( &str, buf );
} else if( exp == 1 ) {
rt_vls_strcat( &str, " *X" );
} else {
/* For constant term, add nothing */
}
}
rt_vls_strcat( &str, "\n" );
rt_log( "%s", rt_vls_addr(&str) );
rt_vls_free( &str );
}
/*
* R T _ P R _ R O O T S
*/
void
rt_pr_roots( title, roots, n )
char *title;
complex roots[];
int n;
{
register int i;
rt_log("%s: %d roots:\n", title, n );
for( i=0; i<n; i++ ) {
rt_log("%4d %e + i * %e\n", i, roots[i].re, roots[i].im );
}
}
-43
View File
@@ -1,43 +0,0 @@
/*
* P O L Y N O . H
*
* Definitions for handling polynomial equations
*
* Author -
* Jeff Hanes
*
* Source -
* SECAD/VLD Computing Consortium, Bldg 394
* The U. S. Army Ballistic Research Laboratory
* Aberdeen Proving Ground, Maryland 21005
*
* Copyright Notice -
* This software is Copyright (C) 1985 by the United States Army.
* All rights reserved.
*
* $Header$
*/
#ifndef POLYNO_H
#define POLYNO_H seen
#define MAXP 4 /* Maximum Poly Order */
#define Abs( a ) ((a) >= 0 ? (a) : -(a))
#define Max( a, b ) ((a) > (b) ? (a) : (b))
/* error return value for 'polyMul' */
#define PM_NULL ((poly *)0)
/* polynomial data type */
typedef struct {
int dgr;
double cf[MAXP+1];
} poly;
/* library functions in polylib.c */
extern poly *polyAdd(), *polySub(), *polyMul(), *polyScal();
extern void quadratic(), synDiv(), prntpoly(), pr_poly();
extern int quartic(), cubic();
#endif /* POLYNO_H */
-1797
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -4,15 +4,16 @@ brlcad_m4 = \
args.m4 \
cache.m4 \
compiler.m4 \
epsilon.m4 \
restore.m4 \
retry.m4 \
sdl.m4 \
search.m4 \
stage.m4
EXTRA_DIST = \
$(brlcad_m4) \
mkdirp.m4
mkdirp.m4 \
sdl.m4
MAINTAINERCLEANFILES = Makefile.in
+1 -1
View File
@@ -1,7 +1,7 @@
# A R G S . M 4
# BRL-CAD
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+1 -1
View File
@@ -1,7 +1,7 @@
# C A C H E . M 4
# BRL-CAD
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+2 -1
View File
@@ -1,7 +1,7 @@
# C O M P I L E R . M 4
# BRL-CAD
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
@@ -45,6 +45,7 @@
#
# BC_PREPROCESSOR_RECOGNIZES
# checks if the preprocessor will work with the specified cppflags
#
###
AC_DEFUN([BC_COMPILER_AND_LINKER_RECOGNIZES], [
+205
View File
@@ -0,0 +1,205 @@
# E P S I L O N . M 4
# BRL-CAD
#
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# 3. The name of the author may not be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
###
#
# BC_TRY_RUN_OUTPUT
# attempts to compile and run the provided program, saving the output
# in the provided variable
#
# BC_FLOAT_EPSILON
# determine the single-precision floating point tolerance epsilon
#
# BC_DOUBLE_EPSILON
# determine the double-precision floating point tolerance epsilon
#
# BC_COMPLIANT_FLOAT
# determine whether the single-precision floating point epsilon seems
# IEEE 754 compliant by computing the power of -23
#
# BC_COMPLIANT_DOUBLE
# determine whether the double-precision floating point epsilon seems
# IEEE 754 compliant by computing the power of -52
#
###
dnl BC_TRY_RUN_OUTPUT(VARIABLE, PROGRAM)
AC_DEFUN([BC_TRY_RUN_OUTPUT], [
AC_REQUIRE([AC_PROG_CC])
cat > conftest.$ac_ext <<EOF
[#]line __oline__ "configure"
#include "confdefs.h"
[$2]
EOF
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} && (./conftest > conftest.stdout; exit) 2>/dev/null ; then
$1=`cat ./conftest.stdout`
else
echo "configure: failed program was:" >&AC_FD_CC
cat conftest.$ac_ext >&AC_FD_CC
$1=""
fi
rm -fr conftest*
])
# BC_FLOAT_EPSILON()
AC_DEFUN([BC_FLOAT_EPSILON], [
dnl determine the minimum single-precision floating point tolerance
dnl value at compile time such that: 1.0 + value != 1.0
dnl ANSI defines this as FLT_EPSILON but float.h may not provide it.
AC_MSG_CHECKING([single-precision floating point tolerance])
BC_TRY_RUN_OUTPUT(bc_flt_epsilon, [
#include <stdio.h>
int main (int ac, char *av[]) {
/* must be volatile to avoid long registers */
volatile float tol = 1.0f;
while (1.0f + (tol * 0.5f) != 1.0f) {
tol *= 0.5f;
}
printf("%.20e", tol);
return 0;
}
])
AC_MSG_RESULT([$bc_flt_epsilon])
])
# BC_DOUBLE_EPSILON()
AC_DEFUN([BC_DOUBLE_EPSILON], [
dnl determine the minimum double-precision floating point tolerance
dnl value at compile time such that: 1.0 + value != 1.0
dnl ANSI defines this as DBL_EPSILON but float.h may not provide it.
AC_MSG_CHECKING([double-precision floating point tolerance])
BC_TRY_RUN_OUTPUT(bc_dbl_epsilon, [
#include <stdio.h>
int main (int ac, char *av[]) {
/* must be volatile to avoid long registers */
volatile double tol = 1.0;
while (1.0 + (tol * 0.5) != 1.0) {
tol *= 0.5;
}
printf("%.20e", tol);
return 0;
}
])
AC_MSG_RESULT([$bc_dbl_epsilon])
])
# BC_COMPLIANT_FLOAT()
AC_DEFUN([BC_COMPLIANT_FLOAT], [
dnl determine whether the floating point implementation seems to be
dnl IEEE 754 compliant by checking whether the tolerance epsilon
dnl matches or is better than -23 power. make sure 0 == -0 too.
AC_MSG_CHECKING([whether floats conform to IEEE 754])
AC_TRY_RUN([
typedef union {
float f;
unsigned short int i[2];
} S;
int main (int ac, char *av[]) {
/* must be volatile to avoid long registers */
volatile float tol = 1.0f;
volatile float power = 1.0f;
int n = 23;
S f;
while (1.0f + (tol * 0.5f) != 1.0f) {
tol *= 0.5f;
}
while (n-- > 0) {
power *= 0.5f;
}
if (tol > power) {
return 1;
}
/* make sure 0 == -0 */
tol = 0.0f; power = -tol;
if (tol != power) {
return 2;
}
/* make sure -0 is implemented */
f.f = power;
n = (f.i[0] != 0) ? 0 : 1;
if (f.i[n] != 0x8000) {
return 3;
}
return 0;
}
], [ AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]
)
])
# BC_COMPLIANT_DOUBLE()
AC_DEFUN([BC_COMPLIANT_DOUBLE], [
dnl determine whether the floating point implementation seems to be
dnl IEEE 754 compliant by checking whether the tolerance epsilon
dnl matches or is better than -23 power. make sure 0 == -0 too.
AC_MSG_CHECKING([whether doubles conform to IEEE 754])
AC_TRY_RUN([
typedef union {
double d;
unsigned short int i[4];
} D;
int main (int ac, char *av[]) {
/* must be volatile to avoid long registers */
volatile double tol = 1.0;
volatile double power = 1.0;
int n = 52;
D d;
while (1.0f + (tol * 0.5) != 1.0) {
tol *= 0.5;
}
while (n-- > 0) {
power *= 0.5;
}
if (tol > power) {
return 1;
}
/* make sure 0 == -0 */
tol = 0.0; power = -tol;
if (tol != power) {
return 2;
}
/* make sure -0 is implemented */
d.d = power;
n = (d.i[0] != 0) ? 0 : (d.i[1] != 0) ? 1 : (d.i[2] != 0) ? 2 : 3;
if (d.i[n] != 0x8000) {
return 3;
}
return 0;
}
], [ AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]
)
])
+1 -1
View File
@@ -1,7 +1,7 @@
# R E S T O R E . M 4
# BRL-CAD
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
+1 -1
View File
@@ -1,7 +1,7 @@
# R E T R Y . M 4
# BRL-CAD
#
# Copyright (C) 2005 United States Government as represented by
# Copyright (c) 2005-2006 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without

Some files were not shown because too many files have changed in this diff Show More