POV-Ray : Newsgroups : povray.newusers : Volume and Area Server Time
1 Nov 2024 17:21:19 EDT (-0400)
  Volume and Area (Message 1 to 4 of 4)  
From: kmac99
Subject: Volume and Area
Date: 18 Mar 2005 12:15:00
Message: <web.423b0c5e64a8b38e5f8006bd0@news.povray.org>
Are there any provisions for POVRay to output statistics such as area or
volume of a single object or some other correlated measure?

Thanks.


Post a reply to this message

From: Rafal Maj Raf256
Subject: Re: Volume and Area
Date: 18 Mar 2005 13:01:51
Message: <14251442.5LNB2etjWF@raf256com>
kmac99 wrote:

> Are there any provisions for POVRay to output statistics such as area or
> volume of a single object or some other correlated measure?

There was a function that can return if given point is insade an object - it
can be done using Trace. Use it meany times on object bounding box and
calculate hits/misses

-- 
Rafal Maj Raf256


Post a reply to this message

From: Warp
Subject: Re: Volume and Area
Date: 18 Mar 2005 16:22:39
Message: <423b469f@news.povray.org>
kmac99 <nomail@nomail> wrote:
> Are there any provisions for POVRay to output statistics such as area or
> volume of a single object or some other correlated measure?

  I believe that problem borders the impossible in the general case.

  You can approximate the volume of an object by taking samples, but that's
inaccurate and slow.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Alain
Subject: Re: Volume and Area
Date: 19 Mar 2005 09:32:25
Message: <423c37f9$1@news.povray.org>
kmac99 nous apporta ses lumieres en ce 2005-03-18 12:14:
> Are there any provisions for POVRay to output statistics such as area or
> volume of a single object or some other correlated measure?
> 
> Thanks.
> 
> 
For simple shapes like sphere and box, you can do the maths using the dimentions used.
For other 
shapes, the formuas are more complex, look in your geometry and trigs school books. If
you used CSGs 
operations, isosurfaces, meshes or hightfields, I doubt you can even get a decent
evaluation in most 
cases.

Alain


Post a reply to this message

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