POV-Ray : Newsgroups : povray.newusers : surface area of objects Server Time
30 Jul 2024 02:22:29 EDT (-0400)
  surface area of objects (Message 1 to 3 of 3)  
From: Samuel Hoffstaetter
Subject: surface area of objects
Date: 10 Dec 2004 15:55:33
Message: <41ba0d45@news.povray.org>
is there any simple way to let povray calculate the surface area and volume
of an object?
For example, for a buoy, whose mass depends on it's surface area, it's
displacement beneath the water surface could be calculated very easily if
there were functions to calculate the volume & surface area of the buoy in
povray.
of course I could calculate this manually also, but it would be a lot easier
if povray could do this.


-- 
Q: How many mathematicians does it take to screw in a light bulb?
A: One.  He gives it to six Californians, thereby reducing the problem
 to the earlier joke.


Post a reply to this message

From: Christopher James Huff
Subject: Re: surface area of objects
Date: 11 Dec 2004 10:21:21
Message: <cjameshuff-C31CF5.10214911122004@news.povray.org>
In article <41ba0d45@news.povray.org>,
 Samuel Hoffstaetter <sho### [at] gmailcom> wrote:

> is there any simple way to let povray calculate the surface area and volume
> of an object?
> For example, for a buoy, whose mass depends on it's surface area, it's
> displacement beneath the water surface could be calculated very easily if
> there were functions to calculate the volume & surface area of the buoy in
> povray.
> of course I could calculate this manually also, but it would be a lot easier
> if povray could do this.

There is no easy, general method for doing so, and for some objects 
there are multiple ways to define "surface area". For example, do you 
count both sides of a triangle? Do you count the inner surface of an 
open-ended cylinder? And how do you compute the area of a julia fractal? 
Volume also has some problems...not all shapes have a finite volume, and 
how do you define it for open objects?

However, given some knowledge about the object, you can use the 
scripting capabilities of the POV-Ray scene description language to get 
a numeric approximation. It should be pretty easy to compute both 
surface area and volume for a more or less cylindrical shape with a few 
loops and trace() calls, for example.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

From: Samuel Hoffstaetter
Subject: Re: surface area of objects
Date: 11 Dec 2004 12:00:16
Message: <41bb27a0@news.povray.org>
Christopher James Huff wrote:

> In article <41ba0d45@news.povray.org>,
>  Samuel Hoffstaetter <sho### [at] gmailcom> wrote:
> 
>> is there any simple way to let povray calculate the surface area and
>> volume of an object?
>> For example, for a buoy, whose mass depends on it's surface area, it's
>> displacement beneath the water surface could be calculated very easily if
>> there were functions to calculate the volume & surface area of the buoy
>> in povray.
>> of course I could calculate this manually also, but it would be a lot
>> easier if povray could do this.
> 
> There is no easy, general method for doing so, and for some objects
> there are multiple ways to define "surface area". For example, do you
> count both sides of a triangle? Do you count the inner surface of an
> open-ended cylinder? And how do you compute the area of a julia fractal?
> Volume also has some problems...not all shapes have a finite volume, and
> how do you define it for open objects?
>

too bad :-( 

> However, given some knowledge about the object, you can use the
> scripting capabilities of the POV-Ray scene description language to get
> a numeric approximation. It should be pretty easy to compute both
> surface area and volume for a more or less cylindrical shape with a few
> loops and trace() calls, for example.
> 

thanks.


-- 
You will be misunderstood by everyone.


Post a reply to this message

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