On Jul 23, 2013, at 5:23 PM, Isaac Kamga wrote:

> In order to prepare the  BRL-CAD source code for the heart primitive , I 
> hooked the heart primitive into the BRL-CAD source by adding a magic number 
> for the heart in include/magic.h and src/libbu/magic.c, stubbing an empty 
> heart in include/db5.h, include/rtgeom.h, include/raytrace.h, 
> src/librt/db5_types.c and  /src/librt/primitives/table.c and adding typing 
> support for the heart in the mged interface in include/wdb.h,  
> src/libwdb/wdb.c and src/libged/typein.c.  As regards the ray tracing 
> callback functions in src/librt/primitives/hrt/hrt.c , I have built the 
> hrt_specific structure, written the rt_hrt_shot() and rt_hrt_prep() functions 
> and I am currently testing these.I intend to continue working on other 
> callback functions like rt_hrt_import(), rt_hrt_print(), etc and finally hook 
> the heart primitive to the mged and archer interfaces with associated clean 
> up and documentation.

Good summary Izak, thanks.  Do you have any pictures yet?  I suggest starting 
by putting a simple sphere equation into the shot() routine, but still using 
the libbn root solver (just like torus) to evaluate it.  If you get that 
working, then getting the heart to work may be as simple as increasing some 
hard-coded libbn limits and feeding the more complex heart equation.  Probably 
not, but it's certainly worth trying first and will take just a few minutes to 
test.

Cheers!
Sean

p.s. Please don't include the entire digest on replies.  Only what is 
immediately relevant should be included.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to