POV-Ray : Newsgroups : povray.newusers : if inside a macro syntax (if...else) : Re: if inside a macro syntax (if...else) Server Time
30 Jul 2024 00:31:20 EDT (-0400)
  Re: if inside a macro syntax (if...else)  
From: Warp
Date: 30 Dec 2004 12:11:12
Message: <41d436b0@news.povray.org>
kurtz le pirate <kur### [at] yahoofr> wrote:
>  - macro in pov is not the same as macro in c. there is no "code 
> substitution".

  There is and there isn't. It's a bit complicated. See my other post
on the subject.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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