POV-Ray : Newsgroups : povray.general : Different error messages for same POV-file : Re: Different error messages for same POV-file Server Time
10 Aug 2024 09:12:35 EDT (-0400)
  Re: Different error messages for same POV-file  
From: Tor Olav Kristensen
Date: 17 Mar 2000 22:52:48
Message: <38D2FC3B.2972B2A1@hotmail.com>
I have now found a way to do several nested 
calls of macros that passes arrays to each other 
(like in the last macro below), without 
getting error messages and without having to
make global declarations of local variables.

I will post my "solution" here if anyone is 
interested.

Regards

Tor Olav

-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Tor Olav Kristensen wrote:
> 
> ...I want to be
> able to replace macros like e.g. this one:
> 
> #macro Minv(MM)
> 
>   #local NN = array[3]
>   #local PP = array[3]
>   #local QQ = array[3]
>   #local s = 1/Mdet(MM);
>   #local NN = Mcof(MM)
>   #local PP = Mtrans(NN)
>   #local QQ = Mscale(s, PP)
> 
>   QQ
> 
> #end
> 
> with macors like this one:
> 
> #macro Minv(MM)
> 
>   Mscale(1/Mdet(MM), Mtrans(Mcof(MM)))
> 
> #end
>


Post a reply to this message

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