> Based on what little I can find in the source code for the definition of V 
> and H, 
> it would seem that the raytrace is wrong.  If H defines the interior length 
> of the
> cylinder, then making r1=50; r2=25; |H|=50 should result in a pill 125 units 
> long.
> The raytrace makes me believe that something in the shot() routine is maybe
> treating H as defining the exterior length of the entire particle, in which 
> case the
> "pill" is 50 units long as r2 is completely inside of r1, and results in just 
> the r1
> sphere.

I don't think H is treated as defining the exterior length of the entire 
particle. In the case above, the "pill" is 100 units long, not 50 (the diameter 
of the sphere is 2*r1 = 100). Also, this solid, when raytraced, is NOT a 
sphere. H still defines the interior length of the cylinder (the distance 
between the centers of the two hemispheres). Only when r1 = r2 + |H| (r1 > r2), 
(i.e. r1=50, r2=25, |H|=25) the raytrace result will be a sphere. At this time, 
r2 is an inscribed sphere of r1. The shape of ray tracing is almost the same as 
the plotted one, but it's a "smoothened" one.


Cheers!
Wu
------------------------------------------------------------------------------
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