POV-Ray : Newsgroups : povray.newusers : Problem with macros and translate function :/ : Re: Problem with macros and translate function :/ Server Time
18 May 2024 06:10:46 EDT (-0400)
  Re: Problem with macros and translate function :/  
From: kurtz le pirate
Date: 23 Aug 2023 11:22:47
Message: <64e62447@news.povray.org>
On 23/08/2023 13:57, aysays wrote:
> Hello I'm new to Pov-Ray and am trying to write a broccoli fractal code however
> I'm having problems with the translate function. If I understood it correctly,
> translate only accepts numerical values. I tried writing a macro but that didn't
> work either. How am I supposed to write a recursive function that utilizes
> translate? :/ Here is my code:
> 
> .. 
> 
> Thanks in advance :)
> 
> 

Quickly: the trans() macro doesn't know the values of 'i' and 'ang'.
Either declare these variables globally, or pass them as parameters.


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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