POV-Ray : Newsgroups : povray.general : Volume of a 3d mesh : Re: Volume of a 3d mesh Server Time
10 Aug 2024 21:03:47 EDT (-0400)
  Re: Volume of a 3d mesh  
From: John VanSickle
Date: 11 Dec 1999 23:21:06
Message: <38532418.2253F955@erols.com>
Greg M. Johnson wrote:
> 
> Boy, you are a math whiz!  But I'm slightly confused in your notation,
> it's almost as if you wrote three matrices instead of one. By
> "determinant of this matrix", you mean:
> 
>                         A.x * B.y * C.z  + .....
> 
> Will pov or one of your macros do this calc for me?

Thanks to the fact that it's a 3x3 matrix with it elements conveniently
stored in three vectors, and the fact that the determinant of a 3x3
matrix can be found by taking the cross product of the second and third rows, and
taking the dot
product of that result and the first row, the determinant can be easily found with POV
code.

#macro Determinant(A,B,C)
  vdot(A,vcross(B,C))
#end

Regards,
John
-- 
Hmm, 62 words in one sentence.  I guess I've been reading too much
Victor Hugo...


Post a reply to this message

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