POV-Ray : Newsgroups : povray.advanced-users : How to find the equation of a plane from three points? : Re: How to find the equation of a plane from three points? Server Time
30 Jul 2024 10:13:09 EDT (-0400)
  Re: How to find the equation of a plane from three points?  
From: Tor Olav Kristensen
Date: 23 Feb 2000 12:54:10
Message: <38B41DBE.1FDDDC24@hotmail.com>
Or just:

#macro MakePlane(a, b, c)

  plane {
    vcross((b)-(a), (c)-(a)), 0
    translate a
  }

#end // macro MakePlane


Tor Olav Kristensen

mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tokrays.html


Josh English wrote:

> This is a macro I found somewhere on this:
> #macro MakePlane(a,b,c)
>   #local n=vnormalize(vcross((b)-(a),(c)-(a)));
>   #local o=vdot((a),n);
>   plane {n,o pigment { onion} }
> #end
>
> #declare a = <-1,1,0>;
> #declare b = <1,0,-1>  ;
> #declare c = <2,0,1>;
> sphere { a 0.25 pigment { rgb <1,0,0> } }
> sphere { b 0.25 pigment { rgb <0,1,0> } }
> sphere { c 0.25 pigment { rgb <0,0,1> } }
>
> MakePlane(a,b,c)
>
> I know, too little, too late.
>
> Josh
>
> David Fontaine wrote:
>
> > --
> > ___     ______________________________________________________
> >  | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
> >  |_/avid |ontaine               http://www.faricy.net/~davidf/
> >
> > "Sitting on a cornflake, waiting for the van to come" -Beatles
>
> --
> Josh English
> eng### [at] spiritonecom
> "May your hopes, dreams, and plans not be destroyed by a few zeros."


Post a reply to this message

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