On Sep 09, 2013, at 01:18 PM, Isaac Kamga <[email protected]> wrote:

Hi,
After having done rt_hrt_prep() and rt_hrt_shot(), I have images from raytracing the heart using its implicit sextic equation.

Do share... both your original image from a couple days ago and any improvements since then would be great to see.

1. How to go about writing rt_hrt_plot() function ?

Lots of examples to follow, but the basic idea is that you manually construct a wireframe representation of the object.  Most of our primitives use the parametric equations with a simple [0,2PI) iteration to define wireframe segments.  I suggest starting with something simple like a single point or (easier to see) a single line, then perhaps a bounding box, then actually use your parametric equations to sample surface points and connect them into isocurves.   

2. What rt_xxx_16pts() does in tgc and superell ?
 
Those are just private helper functions that define a 2D ellipse curve as 16 points (which is effectively a single ellipSOID isocontour).

3. What the routine RT_ADD_VLIST() does ?
 
That macro is defined in the raytrace.h public header.  It adds a wireframe "piece" to a display list which is later drawn (i.e., plotted) on the screen when drawing in wireframe mode.

Cheers!
Sean


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to