POV-Ray : Newsgroups : povray.general : Tetrahedron coordinates Server Time
16 Nov 2024 11:16:14 EST (-0500)
  Tetrahedron coordinates (Message 1 to 4 of 4)  
From: Roland Mas
Subject: Tetrahedron coordinates
Date: 10 Aug 1998 23:00:07
Message: <m3vho0thfd.fsf@clodomir.rezel.enst.fr>
Hello,

  Does any of you know how I could calculate the *exact* coordinates
of the tetrahedron points' coordinates? I mean, yes of course I looked
at include/shapes2.inc, but they seem to be approximations at 0.1 %, and I
need a greater precision (for a scientific job). So I'm looking for
the formulae that could give me these coordinates, or the equations from
which I could draw them.

  Any hint would be appreciated, even if it is just a geometry hint.

  E-mail answers will be summarized and posted here, news article answers
are welcome. Thanks in advance,

Roland.
-- 

bob### [at] casimirrezelenstfr -- Linux, POV-Ray, LaTeX


Post a reply to this message

From: Mark T  Gordon
Subject: Re: Tetrahedron coordinates
Date: 11 Aug 1998 04:00:39
Message: <35CFEE1E.5014152C@mailbag.com>
Roland Mas wrote:

>   Hello,
>
>   Does any of you know how I could calculate the *exact* coordinates
> of the tetrahedron points' coordinates?

<1   1   1>
<1 -1 -1>
<-1 1 -1>
<-1 -1 1>

Swiped from Jim Blinn (A Trip Down the Graphics Pipeline, p. 40).  It seems
that the a tetrahedron fits comfortably inside a cube such that two opposite
edges of the tetrahedron are diagonals of opposite faces of a cube (a unit
cube is convenient), and the vertices of the tetrahedron are the vertices of
the cube at those diagonals.

Rotate, translate, and/or scale to suit your needs, but be prepared to lose
precision in some cases.  Still, the above is exact, if you're willing to
accept that orientation.

-Mark Gordon


Post a reply to this message

From: Roland Mas
Subject: Re: Tetrahedron coordinates
Date: 11 Aug 1998 06:15:04
Message: <m3soj3dh1i.fsf@clodomir.rezel.enst.fr>
Gosh, I knew it. It had just sneaked out of my mind.

  Thank you...
Roland.
-- 

bob### [at] casimirrezelenstfr -- Linux, POV-Ray, LaTeX


Post a reply to this message

From: Alain CULOS
Subject: Re: Tetrahedron coordinates
Date: 15 Aug 1998 06:06:22
Message: <35D094C0.E995AF98@bigfoot.com>
Mark T. Gordon wrote:

> Roland Mas wrote:
>
> >   Hello,
> >
> >   Does any of you know how I could calculate the *exact* coordinates
> > of the tetrahedron points' coordinates?
>
> <1   1   1>
> <1 -1 -1>
> <-1 1 -1>
> <-1 -1 1>

The simple demonstration we alsways try to find a complex answer when with hind
sight it is so simple ...
I'm impressed although I should not be - given the amount of maths I did,

Cheers,
Al.

--
ANTI SPAM / ANTI ARROSAGE COMMERCIAL :

To answer me, please take out the Z from my address.


Post a reply to this message

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