POV-Ray : Newsgroups : povray.general : Plane going through three points : Re: Plane going through three points Server Time
4 Nov 2024 13:02:13 EST (-0500)
  Re: Plane going through three points  
From: Pascal
Date: 20 Dec 2003 09:19:48
Message: <3fe45a84$1@news.povray.org>

news: kav### [at] netplexaussieorg...
> How do I find a plane that passes through 3 points in space?
>
> --
> Kaveh

In pov dialect:

#include "functions.inc"

#declare A=<2,0,0>;  // whatever
#declare B=<0,1,0>;  // whatever
#declare C=<0,4,5>;  // whatever

plane {
        vcross(B-A,C-A)
        vdot(A,vnormalize(vcross(B-A,C-A)))
        pigment{color rgb 1}
        finish{ ambient .5}
}

--
Pascal.


Post a reply to this message

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