|
|
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
|
|
|
|
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
|
|