POV-Ray : Newsgroups : povray.advanced-users : Simple math question : Re: Simple math question Server Time
30 Jul 2024 06:26:09 EDT (-0400)
  Re: Simple math question  
From: Kevin Wampler
Date: 24 Dec 1999 13:10:50
Message: <388C96A7.88E72C87@tapestry.tucson.az.us>
Kevin Wampler wrote:

> I'm pretty sure that these are correct.

Well, except for a really whopping error I made they were.
I redid my calculations and now I think I have the correct formulas:

V = 4*pi*(1/6*r1^2*sqrt(r2^2-r1^2)+1/4*pi*r1*r2^2
    -1/2*r1*r2^2*asin(-r1/r2)+1/3*r2^2*sqrt(r2^2-r1^2))

A = 4*pi*(r1*r2*acos(-r1/r2)+r2*sqrt(r2^2-r1^2))

Now, if I didn't make a typo, those should work much better.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.