POV-Ray : Newsgroups : povray.off-topic : Numerical approximation of the gravity of a torus : Re: Numerical approximation of the gravity of a torus Server Time
3 Sep 2024 17:16:15 EDT (-0400)
  Re: Numerical approximation of the gravity of a torus  
From: scott
Date: 8 Mar 2011 05:10:02
Message: <4d76007a$1@news.povray.org>
>    One way to numerically approximate the result would be to fill the torus
> with point masses and then sum up their gravity on the tested location.
> If we assume that the torus has even density, filling it up with point
> masses is actually non-trivial.

I would have thought the easiest and trivial way is to just sample the 
3D volume containing the torus in a regular grid pattern.  Kind of like 
creating a volume texture of the torus.  You can then divide the total 
mass by the number of points "inside" to figure the mass of each point 
for use in the calculations.  Just choose a resolution good enough for 
the accuracy you require.


Post a reply to this message

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