POV-Ray : Newsgroups : povray.text.scene-files : foreach macro : foreach macro Server Time
8 Feb 2023 05:08:55 EST (-0500)
  foreach macro  
From: jr
Date: 5 Apr 2021 18:30:00
Message: <web.606b8ee6a800902b79819d986cde94f1@news.povray.org>

I re-wrote the first, buggy version[*] of the macro, with much needed help from
tic & tok -- the in-crowd & Tor Olav.  thanks.

so, after some basic testing, here's the second version.  as discussed in the
other thread, there are two types of "payload" macros: returning (some) boolean
value, and returning nothing ("void").  the former are useful for computation
type code, the latter for all else.  there is as yet no documentation, hope to
finish that in a few days.  meanwhile the included demo scene doubles as draft
documentation slash tutorial.  anyway..

enjoy, jr.


Post a reply to this message

Download 'foreach.zip' (5 KB)

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