On Jun 1, 2012, at 6:54 PM, crdueck wrote:

> So I just want to make sure I have everything understood. To add new 
> functions for a primitive I need to:
> 
> - update the rt_functab definition in raytrace.h with new function pointers
> - update the entry for the primitive in table.c with the new functions
> 
> is that all thats needed to make the new function accessible to the libs 
> in mged and libged?

Yes, and nice work figuring it out. :)   Make sure any new functions take 
similar parameter types as the other callback functions.  

You can / should also create a new rt_obj_*() function for your new callback 
after the functab is extended.  See the src/librt/primitives/obj_*.c files for 
examples.  Caller code in libged can either use functab directly or the rt_obj_ 
interface.

Cheers!
Sean


------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to