POV-Ray : Newsgroups : povray.unofficial.patches : Being able to call DLLs/SOs as user defined functions : Re: Being able to call DLLs/SOs as user defined functions Server Time
23 Jun 2024 09:50:37 EDT (-0400)
  Re: Being able to call DLLs/SOs as user defined functions  
From: Warp
Date: 20 Nov 2010 09:27:49
Message: <4ce7dae3@news.povray.org>
Mircode <Mircode> wrote:
> I am very unhappy with the unflexibility of user defined functions. Recursion is
> not allowed, loops can not be implemented, the only way to branch is the select
> function, which is very unhandy and I am not sure whether POV-Ray still
> evaluates all branches and after that selects.

  Actually recursive functions are allowed (at least they are in pov3.6).
You can eg. implement the Mandelbrot pattern as a user-defined function
(wihtout using the 'mandel' pattern, naturally). I have done that in the
past as a proof-of-concept.

-- 
                                                          - Warp


Post a reply to this message

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