POV-Ray : Newsgroups : povray.beta-test : functions in arrays Server Time
31 Jul 2024 02:30:00 EDT (-0400)
  functions in arrays (Message 1 to 2 of 2)  
From:
Subject: functions in arrays
Date: 19 Sep 2001 08:47:22
Message: <6u4hqt8hk62pm6mns2v0kbej99ufvkep6s@4ax.com>
platform info: WinNT4, PII 233, 128MB, POV3.5b2

looking at behavior of arrays on example of storing objects

  #local A=sphere{10,2}
  #local B=sphere{3,7}
  #local Array=array[2]{A,B}
  #local c=sphere{Array[0]}

above example works fine
than I expect that similiar syntax for functions works such way:

  #local A=function(h){h^h}
  #local B=function(h){A(h)-h}
  #local Array=array[2]{A,B}
  #local c=Array[0](1)

but only below version is parsed ok

  #local A=function(h){h^h}
  #local B=function(h){A(h)-h}
  #local Array=array[2]{function{A(x)},function{B(x)}}
  #local c=Array[0](1,0,0)

I think it's not very logical, but perhaps there are some limitations
inside source of current engine :-(

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: functions in arrays
Date: 19 Sep 2001 11:40:43
Message: <3ba8bc7b$1@news.povray.org>
This report is the same as 


Newsgroups: povray.beta-test
Subject: identifier of function
Date: Wed, 19 Sep 2001 14:20:30 +0200
Message-ID: <s83hqt01d1q4r9u4b7tr8e3cg0nfoo25fe@4ax.com>


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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