WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Adding function tables to MGED

Adding function tables to MGED

by crdueck :: Rate this Message:

| View in Thread

hello,

I've written some volume and surface area functions dealing with
primitives that I want to make available to MGED. In particular, the
analyze commands from libged/analyze should be able to use these
functions, but i was also thinking that making them available as stand
alone functions could be useful as well. Usage would simply be something
like:
"vol sph1.sph" --> "volume sph1.sph: 4.00 cm^3"

in any case, I've seen that MGED uses function tables to store its
commands. I've seen one example of an actual table in animedit to store
joint commands and function tables being used in mged/cmd.c but I'm
still a bit unclear on how they are used. Could someone please explain
how to make new functions available using these tables?

thanks,
chris


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@...
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

 « Return to Thread: Adding function tables to MGED