IRC log for #brlcad on 20080826

00:52.28 *** join/#brlcad Twingy (n=justin@74.92.144.217)
00:59.37 *** join/#brlcad pacman871 (n=Timothy@resnet-45-219.dorm.utexas.edu)
01:32.41 brlcad starseeker: not sure that fully will do it, don't want to unset flags that might already be set
01:32.48 brlcad just want to make sure those two flags are set
01:33.04 brlcad so probably should be an |=
01:33.31 brlcad |= (DIR_REGION | DIR_COMB) or whatever it is
01:33.42 starseeker OK, I'll give that a test
01:33.43 brlcad er
01:34.12 brlcad |= (DIR_REGION & DIR_COMB) .. might want to make sure the bit-logic is right ;)
01:34.28 starseeker doesn't quite understand the bit logic...
01:34.31 brlcad er, I had that right the first time, jeez
01:34.36 starseeker thought so
01:34.50 starseeker let me check in something quick, and I'll test that out
01:35.57 brlcad the only thing that comes to mind presently would be an inmem object, which I don't know how you'd get at one via attr
01:36.27 brlcad but that's the sort of detail that becomes a *really* obscure nasty hard bug to find several years later when someone does make it possible
01:36.27 CIA-24 BRL-CAD: 03starseeker * r32536 10/brlcad/trunk/src/libged/wdb_obj.c: Add -nonstd and -shader options to attr command to list all objects with nonstandard attributes and all objects with shaders.
01:37.52 brlcad blech, those aren't really generalized
01:39.01 brlcad seriously need a 'find' command
01:39.25 starseeker I can roll it back if you want - I was just looking at Dwayne's feature request in the tracker
01:40.41 brlcad I know, it's been requested for years .. it's just a small can of worms
01:42.49 starseeker The |= looks OK for adding the region attribute, but doesn't hack it for deleting
01:43.20 starseeker Is there a "remove DIR_REGION" operation?
01:44.26 brlcad it'll be something like & ~(DIR_REGION)
01:44.36 brlcad you and the negation
01:44.50 brlcad that unsets just that bit
01:45.22 brlcad which is what you saw earlier: dp->d_flags = DIR_REGION & ~(RT_DIR_INMEM);
01:45.30 starseeker Ah
01:45.37 brlcad setting region and unsetting the inmem bit if it was set
01:46.00 brlcad actually not quite in that case since it's just =
01:46.18 brlcad same across the DIR_REGION value though
01:47.14 brlcad that dp->d_flags = DIR_REGION & ~(RT_DIR_INMEM) line is mildly suspicious actually
01:47.34 brlcad stops thinking about it
01:47.53 starseeker So you're thinking dp->d_flags |= DIR_COMB & ~(DIR_REGION);
01:50.29 starseeker whoops, that doesn't do it...
01:54.38 CIA-24 BRL-CAD: 03starseeker * r32537 10/brlcad/trunk/src/libged/wdb_obj.c: fine tuning the setting of the d_flags for attr
01:55.32 brlcad more like dp->d_flags = dp->d_flags & ~(DIR_REGION)
01:55.48 starseeker brlcad: should I revert the nonstd and shaders options?
01:56.03 brlcad I think you should write a find command
01:56.29 brlcad would be the greatest new command addition, deprecating out a dozen or so others
01:56.57 brlcad then having those sorts of customized searches fits in pattern-wize
01:57.08 starseeker nods.
01:57.22 starseeker OK, let me untangle the patch quick...
01:57.25 brlcad i now, it's more work an dyou were looking for th equick fix
01:57.40 brlcad jeez, i must be tired
01:57.54 starseeker blinks
01:58.03 starseeker come again?
01:58.20 brlcad i mean.. i know, it's more work and you were looking for a quick fix
01:58.24 starseeker Ah :-)
01:59.05 starseeker looked simple and I thought it would look good to kill such a long standing request, but I shoulda know there was a reason ;-)
01:59.13 brlcad if it's any incentive, though, the need comes up several times every year
02:02.06 CIA-24 BRL-CAD: 03starseeker * r32538 10/brlcad/trunk/src/libged/wdb_obj.c: Remove -nonstd & -shader options for attr per Sean - need a more general find command as a solution.
02:02.13 starseeker I think that pulls it out
02:02.50 starseeker will look into a find command tomorrow
02:02.55 brlcad find / -region no
02:03.25 brlcad find / -not -stdattr
02:06.34 brlcad find /path/to/assembly -not -regex '.*\.r' -name '*_left" -delete
02:06.46 brlcad such a powerful command :)
02:07.15 starseeker gets the feeling this is more than a one day command
02:07.55 brlcad in this case, it's be worth a month if you ended up with the command
02:08.12 starseeker ok :-)
02:09.16 CIA-24 BRL-CAD: 03starseeker * r32539 10/brlcad/trunk/src/libged/wdb_obj.c: a few more wdb_attr_cmd cleanups
02:09.45 starseeker OK, I think that gets us to "just what's needed to fix the attr show & t -r & tops behavior"
02:10.07 starseeker should read the find manual in depth now...
02:10.27 starseeker sorry to rush in headlong on the attr options brlcad
02:10.44 brlcad could put a todo (in src or TODO if it's worth it) for whatever the next step is
02:11.17 brlcad no need to be sorry
02:11.34 starseeker k. I'm also going to make a note on Dwayne's bug so someone else doesn't fall into the same trap
02:11.36 brlcad i never actually said pull it .. it just really is a can of worms :)
02:11.44 brlcad i just would complain a lot
02:11.53 starseeker heh - I noticed ;-)
02:12.26 starseeker but it would be user visible, which means I'd have to admit it's there, which means it would become a barnicle to be scraped off once find is written ;-)
02:12.39 starseeker so the solution is to write find quickly
02:12.43 brlcad a new find command is actually pretty exciting
02:14.55 starseeker once libregex and searching the database are in hand it should be mainly a question of lots of syntax support, correct?
02:15.16 starseeker i.e., those options were in essense (very) small pieces of what will ultimately be needed?
02:15.19 brlcad if I could only have one unix-command and I had a filesystem full of data to manage, find would probably be it
02:16.08 starseeker that's a pretty compelling argument
02:16.17 brlcad first off, though -- do you know how to use find yourself already?
02:16.34 starseeker not well - that's why my first stop will be the find man page for an in-depth read
02:16.36 brlcad if not, you should probably take a couple days and learn it first
02:17.13 starseeker senses a docbook doc at the end of this... my sympathies to brlcad in advance ;-)
02:18.27 starseeker Ah, well - at least one bug was closed.
02:19.36 brlcad find / -name \*\.r -exec cp {} {}.bak \; -exec facetize {}.bot {} \;
02:19.46 brlcad whoosh! .. damn will that be powerful
02:20.40 brlcad and you can probably even find a bsd implementation that you could start from
02:20.55 starseeker that will help :-)
02:21.26 brlcad but yeah, to your earlier question -- you basically end up needing to write a pretty flexible argument parser for the syntax/options and then little snippets of logic for each rule
02:22.18 CIA-24 BRL-CAD: 03starseeker * r32540 10/brlcad/trunk/TODO: Add TODO item for BRL-CAD find command
02:22.21 brlcad the arguments just become a filter/stream/stack/whatever on objects and then there are optional actions (with the default being "print it")
02:22.35 brlcad wasn't already in there?
02:22.46 starseeker didn't see it
02:22.49 starseeker looks agin
02:22.51 brlcad huh, k
02:23.12 starseeker just grepped for "find"
02:23.33 starseeker brain fried ;-)
02:23.56 starseeker was actually quite pleased to get even the limited searches working, so find should be Fun :-)
02:24.46 starseeker idly wonders if it's possible to have a find syntax for "all objects inside box"
02:25.18 brlcad probably even worthy of a dev doc on the wiki to sort out just which options to find you intend to implement first
02:25.34 starseeker nods - sounds good
02:25.44 brlcad since there are too many to implement all of them, some that can't be implemented, and a few brl-cad specific ones that would be needed
02:27.11 starseeker has evil thought - have a "find_box" object in MGED, movable like any arb8, and then have a find option to list all objects inside that box, wherever the box is a the time the find command is run
02:29.14 brlcad yeah, that'd probably fall into the third category
02:29.18 brlcad geometry-specific options
02:29.44 brlcad find / -bbox x1,y1,z1,x2,y2,z2
02:29.57 starseeker :-)
02:30.38 starseeker that could help when pruning meshes - "execute a kill on all meshes inside this box"
02:30.49 starseeker or mesh points rather
02:31.29 brlcad find / -bbox x1,y1,z1,x2,y2,z2 -type bot -exec kill {} \;
02:32.10 starseeker has a feeling Dwayne would be doing scary scary stuff with that kind of power ;-)
02:32.33 brlcad it's uber powerful scripting without all the scripting
02:34.38 brlcad the remat command could have been a simple find one-liner, find assembly -type region -exec attr set {} material_id 10 \;
02:35.37 brlcad course the really frequently used commands still have brevity and simplicity on their side, as remat does in that case: remat assembly 10
02:35.58 starseeker create colored object lines through a model: find / nirt -b -e dir 10 10 10 -type region -exec mater shader rgb 255/255/255 {} \; or some such :-)
02:36.02 starseeker nods
02:36.23 brlcad but it's *very* specific to that action only, if I want even the slightest variant (maybe set the los), I can't
02:36.47 starseeker heck, some of those commands could become wrappers around the find command
02:37.05 starseeker might simplify the code a bit
02:38.19 brlcad yep
02:39.16 starseeker OK, I'm sold - and there's a feature request so I'm technically doing a help desk support task :-)
02:42.28 starseeker alright, time to go home and get some sleep :-)
02:42.46 starseeker later all! (and thanks brlcad, particularly with the "|=" syntax)
02:47.09 brlcad cheers
04:05.04 *** join/#brlcad PrezKennedy (i=Matthew@whitecalf.net)
04:13.30 yukonbob peeks in
04:21.07 brlcad pees in
04:27.07 CIA-24 BRL-CAD: 03brlcad * r32541 10/brlcad/trunk/src/nirt/nirt.c: ws and comma style cleanup
04:28.22 yukonbob heh
04:28.32 yukonbob how's it going my friend?
04:28.45 yukonbob ~lart puddles
04:28.45 ibot puts on a hockey mask and jumps out at puddles
04:29.29 brlcad tired
04:30.02 brlcad all reading and no coding make jack tired
04:31.43 CIA-24 BRL-CAD: 03brlcad * r32542 10/brlcad/trunk/src/nirt/sfiles/ (csv-gap.nrt csv.nrt default.nrt gap1.nrt gap2.nrt): poor man alignment .. probably should just have the alignment and use the file name or another line in the file for the name. then the alignment could be automatic..
04:43.39 PrezKennedy waves to yukonbob and brlcad
04:46.09 yukonbob hello, PrezKennedy
04:46.17 PrezKennedy howdy
04:49.53 brlcad waves back to PrezKennedy
04:51.17 brlcad awesome, barely any grammar/punct changes this time .. janine must have caught them beforehand or he's wising up to their placement..
05:50.07 brlcad finishes reviewing yonder minibook about nirt
05:50.23 brlcad nicely done starseeker .. lots of comments
07:40.42 *** join/#brlcad d_rossberg (n=rossberg@bz.bzflag.bz)
07:50.34 CIA-24 BRL-CAD: 03d_rossberg * r32543 10/brlcad/trunk/src/libged/CMakeLists.txt: added some files to be in sync with Makefile.am
07:55.11 CIA-24 BRL-CAD: 03d_rossberg * r32544 10/rt^3/trunk/ (2 files in 2 dirs): we don't need an extra pointer to the database's title
08:00.18 *** join/#brlcad elmom_ (n=elmom@hoasnet-ff04dd00-187.dhcp.inet.fi)
10:11.35 *** join/#brlcad clock_ (n=clock@84-72-91-240.dclient.hispeed.ch)
10:27.00 *** join/#brlcad mafm (n=mafm@elnet-111.lip.pt)
11:11.54 *** join/#brlcad elite01 (n=elite01@unaffiliated/elite01)
11:13.09 starseeker brlcad: Thanks :-)
11:13.18 starseeker brlcad: Janine caught them
11:15.36 starseeker has a ways to go in that department, unfortunately...
11:36.49 mafm hi pplz
11:41.51 *** join/#brlcad docelic (n=docelic@78.134.204.27)
12:05.54 CIA-24 BRL-CAD: 03bob1961 * r32545 10/brlcad/trunk/src/tclscripts/mged/edit_solid_int.tcl: This fixes bug 2040395 "tra in console mode produces error"
12:07.54 *** join/#brlcad elite01_ (n=elite01@unaffiliated/elite01)
12:17.58 *** join/#brlcad andrecastelo (n=chatzill@189.13.244.172)
12:18.06 andrecastelo morning guys
12:35.34 *** join/#brlcad Elperion (n=Bary@p5B14FBEE.dip.t-dialin.net)
13:59.50 *** join/#brlcad thing0 (n=ric@123.208.111.232)
14:21.47 ``Erik morning, andre :)
14:38.05 starseeker <PROTECTED>
14:54.59 *** join/#brlcad prasad_ (n=psilva@70.108.244.218)
15:13.10 andrecastelo hi
15:13.39 andrecastelo hi ``Erik.. did you test the rtmlt parallel stuff?
15:15.02 andrecastelo :D
15:19.18 ``Erik not yet, updating stuff right now, I can give it a quick whirl
15:20.45 ``Erik still fruity
15:20.47 ``Erik http://brlcad.org/~erik/mlt.png
15:22.05 ``Erik that was with: rtmlt -F/dev/Xl -o mlt.png /usr/brlcad/share/db/moss.g all.g
15:22.26 ``Erik with -P1, I get http://brlcad.org/~erik/mltP1.png
15:27.33 andrecastelo ``Erik: aww :/
15:39.14 *** join/#brlcad andrecastelo_ (n=chatzill@189.71.55.163)
15:55.53 *** join/#brlcad elite01_ (n=elite01@unaffiliated/elite01)
16:27.23 *** join/#brlcad mafm (n=mafm@elnet-111.lip.pt)
16:46.01 mafm go network admins, go
17:09.15 CIA-24 BRL-CAD: 03bob1961 * r32546 10/brlcad/trunk/ (17 files in 4 dirs): Added the following new functions to libged: ged_3ptarb, ged_analyze, ged_arb, ged_bev, ged_bot_condense, ged_bot_face_fuse, ged_bot_merge, ged_bot_split and ged_bot_vertex_fuse
19:30.07 *** join/#brlcad Elperion (n=Bary@p5B14FBEE.dip.t-dialin.net)
19:33.31 *** join/#brlcad andrecastelo__ (n=chatzill@189.71.55.163)
19:38.43 *** join/#brlcad andrecastelo__ (n=chatzill@189.13.251.232)
20:21.16 *** join/#brlcad andrecastelo___ (n=chatzill@189.13.251.232)
22:11.36 *** join/#brlcad SWPadnos__ (n=Me@dsl107.esjtvtli.sover.net)
22:28.40 *** join/#brlcad SWPadnos__ (n=Me@dsl107.esjtvtli.sover.net)
22:40.36 *** join/#brlcad SWPadnos__ (n=Me@dsl107.esjtvtli.sover.net)
22:42.03 *** join/#brlcad archivist_ub (n=archivis@host81-149-119-172.in-addr.btopenworld.com)
23:49.11 CIA-24 BRL-CAD: 03brlcad * r32547 10/brlcad/trunk/src/tclscripts/mged/ (8 files): add a slew of additional mged_players protections throughout where it was being used without checking if it existed
23:53.08 CIA-24 BRL-CAD: 03brlcad * r32548 10/brlcad/trunk/NEWS:
23:53.08 CIA-24 BRL-CAD: bob fixed sf bug 2040395 'tra in console mode produces error' where mged was
23:53.09 CIA-24 BRL-CAD: trying to update the display manager if you went into edit mode on an object
23:53.09 CIA-24 BRL-CAD: without checking if mged is being run in graphical mode (i.e. whether there are
23:53.09 CIA-24 BRL-CAD: any mged_players to talk to).

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.