@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.
@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.
Thanks
Last updated: Jan 10 2025 at 00:48 UTC