Stream: Google Code-in

Topic: mged commands


view this post on Zulip Jeff Sieu (Dec 15 2017 at 15:53):

@mentors, may I ask: how do mged commands work -- how do they translate from code to commands? I'm rather interested in the task for refactoring xpush, i've read the code in libged/xpush.c and libged/push.c but I don't really understand how they "become" commands. Does it have something to do with bu/cmd.h? I have read http://brlcad.org/~maths22/books/en/HACKING_BRL-CAD.html#idp25709728 though.

view this post on Zulip Daniel Rossberg (Dec 16 2017 at 12:43):

@Jeff Sieu There is a library for the TCL to BRL-CAD C API translation: libtclcad But, mged doesn't use it. See src/mged/setup.c for the TCL command to BRL-CAD C API function translation and src/mged/wdb_obj.c for the helpers which e.g. ask for the parameters of the in command.

view this post on Zulip Jeff Sieu (Dec 17 2017 at 06:07):

Thanks


Last updated: Oct 09 2024 at 00:44 UTC