POV-Ray : Newsgroups : povray.general : recursively defined objects and memory : Re: recursively defined objects and memory Server Time
29 Jul 2024 02:34:03 EDT (-0400)
  Re: recursively defined objects and memory  
From: Shay
Date: 14 Aug 2013 09:36:44
Message: <520b87ec@news.povray.org>
"Anthony D. Baye"  wrote in message 
news:web.520ab4ece896405b328783aa0@news.povray.org...

> The rotation transform would be done on the boxFN(...) function in the 
> half
> object, and each iteration would redefine baseFn(...)
>

That's ugly. Couldn't you just do this with a gradient function and rotate 
each instance?

You don't need the tricky macro/function stuff either, just make a loop and 
write out 10,000 functions to an include file.

#local f_00000 = function { ...
#local f_00001 = function { f_00000(x, y, z) + ...

That might be a little inelegant for you, but it's what I'd try.

-Shay


Post a reply to this message

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