POV-Ray : Newsgroups : povray.general : marching cube macro : Re: marching cube macro Server Time
7 Aug 2024 11:19:12 EDT (-0400)
  Re: marching cube macro  
From: ingo
Date: 27 Sep 2001 11:31:39
Message: <Xns9129B24D5E614seed7@povray.org>
in news:3BB344D2.8D680A43@gmx.de Christoph Hormann wrote:

> BTW, it would be really nice if passing function names to macros
> worked, this string method looks quite horrible...
> 

Ron posted something like this:

  #macro Foo( Bar, X )
    #declare Y = Bar(X);
    #declare Z = Bar(Y);
  #end

  #declare FUNC=function(n){n+2}

  Foo(function(n){FUNC(n)}, 1)

  #debug str(Y,5,5)
  #debug "\n"
  #debug str(Z,5,5)
  #debug "\n"



Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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