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
2 Nov 2024 07:26:32 EDT (-0400)
  Re: How to find the equation of a plane from three points?  
From: Josh English
Date: 22 Feb 2000 18:25:12
Message: <38B31B2E.C61C31F3@spiritone.com>
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.