IRC log for #brlcad on 20120829

00:56.32 elf_ brlcad : Thanks for looking into that cross reference files :)
01:15.32 elf_ brlcad how does one go along testing the joint command from the /src/mged file?
01:52.39 brlcad elf_: the command hasn't been run in years, but you don't need to be concerned so much with fixing it as "moving" it
01:53.34 elf_ Okay, I was asking just because I wanted to get a better feeling of it, thanks
01:53.39 brlcad moving it will require understanding how mged commands are registered, how libged commands are registered, and what function calls need to be translated for it to work in libged
01:54.00 brlcad running the "joint help" command should give you a usage statement in mged
01:54.25 brlcad first step, move the sources into a libged ged_joint() function and get it to print the same help statement.
01:55.43 elf_ Okay :)
01:56.15 brlcad actually, that's not the first step
01:56.24 brlcad at least it can be a first step, but doesn't need to be
01:56.37 brlcad you'll want to first understand mged commands
01:57.05 brlcad find the joint command in src/mged, just search for "joint" should show you all the places it's at
01:57.22 brlcad then perhaps rename the command itself to joint2
01:58.07 brlcad then you can try to follow how libged commands are registered and can stub in an empty ged_joint() command, registered as 'joint'
01:58.55 brlcad then you can move pieces of "joint2"s guts into your new libged "joint" command
01:58.56 brlcad make sense?
01:59.07 elf_ yes
08:01.23 *** join/#brlcad merzo (~merzo@user-94-45-58-138-1.skif.com.ua)
08:44.57 *** join/#brlcad cristina (~quassel@188.24.44.191)
09:29.05 *** join/#brlcad stas (~stas@82.208.133.12)
11:53.55 *** join/#brlcad merzo (~merzo@user-94-45-58-138-1.skif.com.ua)
12:27.26 CIA-69 BRL-CAD: 03brlcad * r52270 10/brlcad/trunk/src/conv/patch/patch-g.c: init pl to avoid warning
12:41.33 CIA-69 BRL-CAD: 03starseeker * r52271 10/brlcad/trunk/src/librt/test_nurbsfit.cpp: comment out debugging printing
12:42.36 CIA-69 BRL-CAD: 03starseeker * r52272 10/brlcad/trunk/src/ (6 files in 2 dirs): Move PullbackCurve into libnurbs
13:10.59 CIA-69 BRL-CAD: 03starseeker * r52273 10/brlcad/trunk/src/librt/test_botpatches.cpp: Turn the surface creation back on in botpatches test.
14:12.32 CIA-69 BRL-CAD: 03n_reed * r52274 10/brlcad/trunk/src/librt/primitives/ell/ell.c: decompose alternate plot code into functions
14:13.43 *** join/#brlcad merzo (~merzo@user-94-45-58-138-1.skif.com.ua)
14:49.28 brlcad elf_: how's progress?
14:51.00 CIA-69 BRL-CAD: 03starseeker * r52275 10/brlcad/trunk/src/librt/test_botpatches.cpp: disable debugging messages for point converter.
15:01.16 elf_ brlcad, I've moved pieces from the joint command into libged and I am trying to make it have the same output at least for joint help command
15:06.34 elf_ I have some problems understanding how the libged functions are registered however
15:07.34 elf_ there are a lot of file and I am not sure where to look or more exactly what to look for
15:28.55 CIA-69 BRL-CAD: 03n_reed * r52276 10/brlcad/trunk/src/other/step/src/exppp/exppp.c: Use stdarg.h unconditionally and avoid undefined behavior by remembering to call va_end. Appears to fix fedex_plus crash seen when doing a Windows release build.
16:35.05 *** join/#brlcad cpc26 (~cpc26@fsf/member/cpc26)
16:44.05 brlcad elf_: did you rename the exiting joint command to joint2?
16:57.02 CIA-69 BRL-CAD: 03brlcad * r52277 10/brlcad/trunk/src/libtclcad/tclcad_obj.c: if cmd is going to get set, might as well use it.
17:44.02 elf_ I did brlcad, I renamed the command in the /mged/animedit.c
18:00.42 brlcad elf_: so that's not the right place :)
18:01.19 brlcad animedit.c has the implementation, but those function names are mostly irrelevant -- at least that's not where the 'joint' command is registered
18:01.33 brlcad find where the command name itself is registered
18:01.57 brlcad changing the command name from joint to joint2 should have been exactly a one-character change
18:04.06 starseeker woo hoo - go gsoc! 64bit port of Haiku
18:04.16 brlcad yeah, saw that -- good stuff
18:04.45 brlcad was using haiku at siggraph
18:16.25 ``Erik heard they just got a 64b version out
18:16.40 ``Erik doh, that's what starseeker said, heh
18:16.45 ``Erik was on hn this morning :)
22:23.51 *** join/#brlcad ksuzee (~ksu@193.151.107.42)
22:37.34 elf_ Found it brlcad, was in /mged/setup.c
23:20.45 elf_ brlcad does the libged command get registered in the /src/libged/wdb_obj.c file? I found the registering table for the commands and it looks like it does
23:53.43 *** join/#brlcad Yoshi47 (~jan@d24-204-236-81.home4.cgocable.net)

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