POV-Ray : Newsgroups : povray.general : My turn! : Re: My turn! Server Time
8 Aug 2024 06:19:06 EDT (-0400)
  Re: My turn!  
From: Francois Labreque
Date: 8 May 2001 20:34:10
Message: <3AF88F35.DD1EF427@videotron.ca>
Ron Parker wrote:
> 
> or
> 
> #local a=x+y;#local b=x+a;#local c=a+b;#macro P(A,B)polygon{5,A,A+z,B+z,B,A//FL
> texture{pigment{rgb 1}finish{ambient 1}}}#end union{P(0,a)P(a,b)P(b,c)P(c,2*a)P
> (2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)}camera{location<5,1.2,-5>look_at a orthographic}
> 
> which has the advantage of rendering without warnings.

Thanks for the optimization.  I had to leave for work before I had
finished... I knew I had to close my polygons, but I also found one that
was unecessary, So here's the final version:

-- 
#local a=x+y;#local b=x+a;#local c=a+b;#macro P(A,B)polygon{5,A,A+z,B+z
,B,A texture{pigment{rgb 1}finish{ambient 1}}}#end union{P(0,a)P(a,b)P(
b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)}camera{location<5,1.2,-5>look_at a
orthographic} // Francois Labreque - fla### [at] videotronca


Post a reply to this message

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