| 00:08.29 | cobbaut | Erik: i put a humble pdf on the sourceforge forum |
| 00:09.23 | cobbaut | this is the link http://cobbaut.be/byExample.pdf |
| 00:09.59 | cobbaut | but it is more a "by example", and not so much a tutorial, since i only know about 5 percent of brl-cad |
| 00:10.17 | cobbaut | any suggestions are welcome... |
| 00:10.55 | cobbaut | but not now...it is time to go to bed (past 1 am here) |
| 00:11.01 | cobbaut | 'nigth |
| 00:24.09 | ``Erik | whoa, cool |
| 00:38.29 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 01:32.48 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 01:58.33 | *** join/#brlcad tegtmeye (n=tegtmeye@pool-71-248-94-28.bltmmd.east.verizon.net) | |
| 02:04.27 | ``Erik | "oh, no one at the new yorker has an anus" heh |
| 02:28.45 | *** join/#brlcad justin_ (n=justin@c-68-33-163-43.hsd1.md.comcast.net) | |
| 02:49.46 | *** join/#brlcad DTRemenak (n=DTRemena@dsl093-044-212.sac1.dsl.speakeasy.net) | |
| 02:56.20 | tegtmeye | anyone remember how to get the name of the appliation that is currently runnning? ie yourself |
| 02:58.22 | brlcad | argv[0] |
| 03:00.39 | tegtmeye | lol, besides that. I thought that there was a system call that would give you that |
| 03:01.43 | *** join/#brlcad PrezKennedy (n=Apathy@c-68-33-243-45.hsd1.md.comcast.net) | |
| 03:02.13 | brlcad | depends how cross-platform you want to be |
| 03:03.20 | brlcad | iff your system supports getprogname(), you can use that -- you need to setprogname() unless you presume bsd-style behavior (where it's run automatically for you before main()) |
| 03:03.25 | tegtmeye | very. need it for a library that gcc calls |
| 03:04.06 | brlcad | those two are basically equiv to writing your own little function that stashes the argv[0] value in a static/global |
| 03:05.45 | tegtmeye | problem is, I don't have access to the application source |
| 03:06.24 | tegtmeye | so I can't stash argv[0], maybe I was thinking that getprogname was posix, been a long time... |
| 03:07.29 | brlcad | afaik, there's not a posix way to get at it |
| 03:07.58 | brlcad | you don't have any access to the original argv? |
| 03:11.44 | tegtmeye | no. I'm building a library that does some dynamic analysis. So the uses sets up some compiler switches in gcc and links this in. |
| 03:12.45 | tegtmeye | So, in general, I don;t have access to the source and I don't want to have them call mylib::init(argc,argv) or whatever |
| 03:14.49 | brlcad | you can make your own routine that tries the various platform-specific ways |
| 03:15.06 | brlcad | there's a win32 function, i'd have to look it up |
| 03:15.33 | ``Erik | (define-syntax mycond (syntax-rules (else) ((_ (else a)) a) ((_ (p a)) (if p a)) ((_ (p a) r ...) (if p a (mycond r ...))))) |
| 03:15.35 | ``Erik | sweet |
| 03:17.01 | ``Erik | and, of course, the corellary... (define-syntax myif (syntax-rules () ((_ p t e) (cond (p t) (else e))))) |
| 03:17.09 | tegtmeye | I thought there was a way to find out from the pid. The info has to be stored somewhere if 'ps' is getting it. |
| 03:17.11 | ``Erik | *flex* |
| 03:17.16 | ``Erik | getpid() |
| 03:17.34 | brlcad | getprogname'll work on all the bsd, getexecname() on solaris iirc, can query /proc on linux |
| 03:17.48 | ``Erik | ooh, heh |
| 03:18.13 | brlcad | i believe there is a global that glibc provides as well |
| 03:18.41 | ``Erik | um, there was a path expansion function that you could feed argv[0] to I think, I don't recall the name |
| 03:19.31 | brlcad | program_invocation_short_name is one of the globals potentially available iirc |
| 03:19.48 | tegtmeye | hmmm... |
| 03:23.32 | brlcad | /proc/self/cmdline |
| 03:25.36 | tegtmeye | no /proc on mac (assuming bsd as well) |
| 03:30.04 | brlcad | mac has getprogname |
| 03:30.10 | brlcad | there's no single-shot answer |
| 03:30.18 | brlcad | i'm saying you can use the combination of them all |
| 03:30.37 | brlcad | that should cover just about everyone |
| 03:32.54 | *** join/#brlcad grumbel (n=grumbel@i5387CCD4.versanet.de) | |
| 03:39.55 | ``Erik | hrm, stat(NULL,&sb); does not give anything... useful. |
| 03:40.12 | tegtmeye | is getprogname on Linux? |
| 03:40.25 | tegtmeye | -rather who doesn;t have it |
| 03:41.03 | ``Erik | dlinfo on null might be handy |
| 03:42.18 | brlcad | getprogname isn't on linux, it's bsd |
| 03:43.01 | brlcad | you'd need configure tests for the various methods |
| 03:43.13 | tegtmeye | getexecname on Linux? |
| 03:43.20 | brlcad | getexecname on solaris :) |
| 03:44.03 | brlcad | program_invocation_short_name is provided by glibc |
| 03:47.00 | tegtmeye | cool, thanks... |
| 03:47.32 | tegtmeye | <poof> |
| 04:01.05 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/TODO: wrote a manpage for the benchmark tool. need to add the alternates to bu_getprogname, separate into new file too. |
| 04:08.51 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/bench/run.sh: doesn't test the compiler, tests a system |
| 04:17.39 | *** join/#brlcad grumbel (n=grumbel@i5387C5C0.versanet.de) | |
| 04:27.54 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/bench/benchmark.1: initial manual page, pulling content from the existing script contents and word-smithing some clean-up |
| 04:29.58 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/bench/Makefile.am: install and provide the new benchmark manpage |
| 04:43.13 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/mged/setup.c: |
| 04:43.13 | CIA-5 | BRL-CAD: tried to move the PATH modifying block to after Tcl is initialized, but it still |
| 04:43.13 | CIA-5 | BRL-CAD: seems to be causing problems for people compiling on ubuntu for some unknown |
| 04:43.13 | CIA-5 | BRL-CAD: reason. disable the block for now until it can be investigated more fully, |
| 04:43.13 | CIA-5 | BRL-CAD: maybe have to resort to a configure test. |
| 05:05.28 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/conv/g-dxf.c: add a comment about adding the fourth vertex for 3DFACES, massive ws cleanup/consistency |
| 05:22.54 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/conv/ (8 files): a variety of warning quellings, missing stdlib, calls to exit with a negative, ws. |
| 05:23.37 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/NEWS: jra fixed g-dxf compatibility export issue |
| 05:24.15 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/NEWS: added manpage for benchmark |
| 05:52.54 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/conv/ (10 files in 5 dirs): quell warnings, missing stdlib.h, calls to exit with a negative, ws. |
| 05:59.48 | *** join/#brlcad PKMOBILE (n=Apathy@c-68-33-243-45.hsd1.md.comcast.net) | |
| 06:05.32 | birdmun | i asked hours ago about where mged is ... problem is i dont see it in the usr/brlcad/bin dir |
| 06:06.44 | pra5ad_ | did u make install? |
| 06:09.11 | birdmun | yes |
| 06:09.34 | brlcad | what's in your /usr/brlcad/bin dir? |
| 06:09.41 | brlcad | lot of binaries? |
| 06:09.51 | pra5ad_ | yes |
| 06:10.01 | birdmun | 189 exe files |
| 06:10.07 | birdmun | 188 |
| 06:10.08 | brlcad | eek |
| 06:10.28 | brlcad | should be over 400 |
| 06:10.31 | birdmun | i guess that means make install didnt work |
| 06:10.33 | birdmun | ? |
| 06:10.34 | brlcad | how'd you build? |
| 06:10.41 | brlcad | sounds like make install failed part way |
| 06:10.50 | brlcad | or make failed, so make install failed |
| 06:10.58 | birdmun | make finished |
| 06:10.59 | pra5ad_ | is there a flag for ls that produces a filecount? |
| 06:11.06 | pra5ad_ | or do i have to gawk |
| 06:11.11 | brlcad | ls -la1 | wc |
| 06:11.28 | pra5ad_ | 351 |
| 06:11.41 | brlcad | eh, that's not right either :P |
| 06:11.44 | pra5ad_ | 913 |
| 06:12.02 | brlcad | nor is that |
| 06:12.03 | pra5ad_ | woops |
| 06:12.15 | pra5ad_ | 434 |
| 06:12.24 | brlcad | that's more like it |
| 06:12.40 | brlcad | 438 is current iirc |
| 06:12.53 | birdmun | after the make worked properly i should be able to go back to the dir and just run make install yes? |
| 06:12.56 | pra5ad_ | 436 |
| 06:13.12 | brlcad | sure, presuming make worked |
| 06:13.19 | brlcad | you should be able to go back and run make again too |
| 06:13.23 | brlcad | and it should just iterate |
| 06:14.25 | birdmun | when make finished it listed how long it took to make ... i ran make benchmark ... i dont recall any errors there |
| 06:14.44 | brlcad | yes, but did make list any errors |
| 06:15.25 | brlcad | and did mged compile |
| 06:15.31 | brlcad | ls -la src/mged/mged |
| 06:16.11 | brlcad | ls -la src/mged/.libs/*mged* |
| 06:16.31 | birdmun | src should be in the usr/brlcad/ dir? |
| 06:16.39 | brlcad | no |
| 06:17.19 | pra5ad_ | Components. American components, Russian components, ALL MADE IN TAIWAN! |
| 06:17.29 | birdmun | well mged is listed in the src/mged/ dir |
| 06:17.40 | brlcad | armageddon |
| 06:17.59 | brlcad | russian space station cosmonaut |
| 06:18.25 | pra5ad_ | i really enjoy stupid movies |
| 06:18.59 | brlcad | birdmun: well that's a good sign at least |
| 06:19.07 | brlcad | so maybe make install is failing for some reason |
| 06:19.08 | birdmun | i have nothing listed in the .libs dir tho |
| 06:19.21 | brlcad | hmm |
| 06:19.28 | brlcad | what was the first ls -la output |
| 06:20.39 | birdmun | -rwxr-xr-x 1 birdmun None 15319388 Feb 26 03:38 src/mged/mged |
| 06:20.54 | brlcad | hmm, so it built it static |
| 06:20.59 | brlcad | is this cygwin? |
| 06:21.01 | birdmun | yes |
| 06:21.04 | brlcad | ahh, right |
| 06:21.11 | brlcad | okay |
| 06:21.18 | brlcad | libtoolism |
| 06:21.51 | brlcad | so try make install again, watch for errors |
| 06:22.49 | birdmun | k |
| 06:25.39 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libdm/clip.c: revert the clipping plane modifications for now until they can be tested better |
| 06:28.24 | birdmun | now i see an error ... no space left on device |
| 06:28.38 | birdmun | ah ha |
| 06:28.48 | birdmun | 10 meg free space left on that drive |
| 06:29.01 | birdmun | there was 640 left hours ago |
| 06:31.27 | brlcad | heh |
| 06:31.31 | brlcad | yep |
| 06:31.41 | brlcad | building the whole package static is going to be.. big |
| 06:31.49 | brlcad | probably a gig |
| 06:31.54 | birdmun | now he tells me |
| 06:32.08 | brlcad | maybe not |
| 06:32.13 | brlcad | maybe just a few hundred |
| 06:32.23 | birdmun | already over 680 |
| 06:32.26 | brlcad | but you also have the build there, all the object files, libraries |
| 06:34.25 | birdmun | i cleared up some space and am trying again |
| 06:34.29 | birdmun | 500 meg |
| 06:53.37 | birdmun | make install finished w/o errors |
| 06:54.40 | birdmun | i have 434 files |
| 06:55.18 | birdmun | 1.1 gig |
| 06:55.58 | brlcad | heh |
| 06:56.01 | brlcad | excellent |
| 06:56.33 | birdmun | well im heading to bed ... although it may or may not yet be working |
| 07:02.32 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/include/rle.h: include stdlib.h, quell warnings in libutahrle and elsewhere |
| 07:10.12 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbu/association.c: need stdlib.h for exit() |
| 07:17.46 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbu/bomb.c: need stdlib.h for exit(), flush streams before abort. |
| 07:20.10 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbu/color.c: include stdlib.h anyways, but change the exit to a bu_bomb |
| 07:25.44 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbu/fopen_uniq.c: stdlib.h for exit() |
| 07:43.21 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbu/ (10 files): quell warnings, need stdlib.h for exit routines |
| 07:44.42 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbn/bn_tcl.c: common file size is unsigned |
| 07:50.40 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libbn/vert_tree.c: bomb instead of exiting while processing the vertex nodes |
| 07:54.02 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/librt/g_rpc.c: no need to test for null, libbu memory management guarantees non-null -- include stdlib.h anyways |
| 08:08.07 | *** join/#brlcad clock_ (n=clock@84-72-60-3.dclient.hispeed.ch) | |
| 08:20.43 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/librt/ (12 files): stdlib.h warning quelling, conversions to bu_bomb instead of aborting |
| 08:32.25 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/libfb/ (if_debug.c if_null.c if_remote.c): stdlib.h warning quelling |
| 08:34.58 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/liboptical/ (sh_billboard.c sh_fbm.c sh_xxx.c): stdlib.h warning quelling |
| 09:11.01 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/ (fbserv/fbserv.c rt/main.c): stdlib.h warning quelling |
| 10:04.28 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 10:09.11 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/ (60 files in 16 dirs): stdlib.h and exit() |
| 10:25.09 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/liboptical/sh_billboard.c: unsigned long image lengths, quell warnings when passing to sizing funcs |
| 10:25.16 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/liboptical/sh_fbm.c: need string.h for memcpy |
| 10:33.45 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/lgt/lgt.c: unbreak lgt, #endif left in the wrong place. nix the TRUE/FALSE stuff while we're in here too |
| 10:38.02 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/fbserv/fbserv.c: delint the socklent |
| 12:07.11 | cobbaut | thx ``Erik |
| 13:03.58 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 13:07.15 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 15:18.14 | *** join/#brlcad clock_ (n=clock@zux221-122-143.adsl.green.ch) | |
| 16:45.41 | *** join/#brlcad grumbel (n=grumbel@i5387EFF0.versanet.de) | |
| 18:06.45 | *** join/#brlcad PKMOBILE (n=Apathy@12.22.249.3) | |
| 20:10.32 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 20:32.07 | *** join/#brlcad pier (n=pier@151.56.245.72) | |
| 21:19.35 | *** join/#brlcad birdmun (n=birdmun@ppp-70-134-51-45.dsl.spfdmo.swbell.net) | |
| 22:03.14 | *** join/#brlcad cad339 (n=5367b56d@bz.bzflag.bz) | |
| 22:10.48 | *** join/#brlcad Loes (n=loes@kotnet-150.kulnet.kuleuven.be) | |
| 22:10.57 | Loes | hi |
| 22:19.33 | Loes | can anyone tell me how (or where) to start with brlcad? |
| 22:27.05 | brlcad | Loes: howdy and yes |
| 22:27.20 | brlcad | http://brlcad.org, Documents section, docs 1 and 2 |
| 22:27.42 | brlcad | run mged on the command line to get started with the gui modeler, though there is a lot more to it |
| 22:29.00 | Loes | i will try that, found out the installation didn't work |
| 22:30.02 | brlcad | oh? |
| 22:30.24 | Loes | i'm new to linux |
| 22:30.41 | Loes | i tried it on my mac |
| 22:30.51 | Loes | there it worked |
| 22:31.15 | Loes | just going to try again :) |
| 22:31.51 | brlcad | okie dokie |
| 22:41.07 | Loes | compiling from source isn't working |
| 22:41.35 | Loes | if I download the binaries, do I have to put them somewhere specific? |
| 22:44.05 | *** join/#brlcad docelic (n=docelic@clj34-71.dial-up.arnes.si) | |
| 22:48.37 | ``Erik | convention seems to be /usr/brlcad |
| 22:52.01 | Loes | it's working! :) |
| 22:53.09 | ``Erik | swank |
| 23:20.31 | Loes | is it possible to make a 2D drawing from a 3D object? |
| 23:22.16 | ``Erik | fundamentally, it's a trivial operation... I d'no if brlcad has the intrinsics, tho |
| 23:22.55 | ``Erik | um, actually |
| 23:22.58 | ``Erik | there's an app that does it |
| 23:23.05 | ``Erik | "line drawing", uhhh, ron wrote it I think |
| 23:23.14 | Loes | I saw there is a possibility, but I'm looking for something where I can add dimensions and comments afterward |
| 23:23.24 | ``Erik | rtedge |
| 23:29.34 | brlcad | heh |
| 23:29.38 | brlcad | that took a while |
| 23:29.44 | ``Erik | ? |
| 23:29.51 | brlcad | rtwizard too, for more complex imagery |
| 23:30.08 | brlcad | took a while to remember "rtedge" |
| 23:30.20 | ``Erik | I had to look in the bin dir until I spotted it :( |
| 23:30.50 | brlcad | Loes: there's not an automatic means to add dimensions yet, there's a tool planned for that though -- for now, that's more easily handled in an image processing application |
| 23:31.09 | ``Erik | dude, all I did was rewrite the build system before I got shovelled to another project, I know very little about the sw... heh |
| 23:31.57 | Loes | I see you can export it to other formats |
| 23:32.03 | brlcad | tsk tsk |
| 23:32.28 | brlcad | yes, there a 3d export and 2d export formats with various implications |
| 23:33.15 | Loes | so I could export it to f.e. autocad, which has that feature |
| 23:36.18 | brlcad | that you theoretically could |
| 23:37.34 | Loes | all I'm looking for, is a program that can replace solid edge/autocad etc |
| 23:37.51 | Loes | do you think brlcad can doo that? |
| 23:38.35 | Loes | or is it designed for other purposes? |
| 23:38.55 | brlcad | fyi, there are certain versions of autocad that don't parse their own format according to their own specification, our next release will work around it and output something more flexible to their parsers |
| 23:39.08 | brlcad | it can, depends entirely on the purpose |
| 23:39.27 | Loes | i'm a student mechanical engineering |
| 23:39.33 | brlcad | the primary history/focus of the package of the years was solid modeling for the purpose of performing analysis/simulations |
| 23:39.51 | Loes | and i'm using mac, so it's very hard to find 3d software for that |
| 23:40.10 | brlcad | we've got quite a mech-e following |
| 23:40.29 | brlcad | brl-cad's not a good drafter, ala autocad |
| 23:40.31 | Loes | i must say, your program looks good |
| 23:40.47 | Loes | (not easy though :) ) |
| 23:40.52 | brlcad | hence limited 2d drafting support, parametrics, dimensions, etc |
| 23:41.10 | brlcad | otherwise, it is a full-fledged solid modeling system, mature and in production use |
| 23:41.33 | brlcad | and it's open source and free as in beer and speech |
| 23:41.50 | Loes | indeed |
| 23:41.58 | Loes | that's nice (for a student) |
| 23:41.59 | brlcad | so anyone can help improve it, become one of the devs |
| 23:42.38 | brlcad | it's ideal for certain students, imo -- i would have loved having it as a base for my computer graphics and vision work in college |
| 23:42.56 | brlcad | even single processing |