POV-Ray : Newsgroups : povray.general : #macro question : Re: #macro question Server Time
7 Aug 2024 09:20:31 EDT (-0400)
  Re: #macro question  
From: Ron Parker
Date: 11 Oct 2001 09:10:26
Message: <slrn9sb6i3.chi.ron.parker@fwi.com>
On 11 Oct 2001 05:39:42 -0400, Warp wrote:
>macro, although the value of a locally declared identifier can be passed
>outside the macro.

With care.  POV 3.5 has at least one bug with this, and I suspect it existed
in POV 3.1 as well.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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