POV-Ray : Newsgroups : povray.general : printing object's identifier : Re: printing object's identifier Server Time
18 May 2024 16:15:37 EDT (-0400)
  Re: printing object's identifier  
From: Bald Eagle
Date: 20 Mar 2016 22:10:00
Message: <web.56ef5744374275025e7df57c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> How about
>
>     #declare (a,b,c,d) = (1,2,3,4);

> - It is already implemented in the current 3.7.1-alpha ;)

http://news.povray.org/povray.beta-test/thread/%3C558b4c09$1@news.povray.org%3E/

I see.   Thanks for the tip :)

Although it's not explicitly stated in your post that I linked, I'm assuming I
can't mix strings and floats and array elements in a single "tuple-style"
declare.

e.g. #declare (a, filename, MyArray[3]) = (4.2, "TestFile", <1, 2, 3>)

or a mix of scalar and vector quantities

#declare (g, h, i) =  (1, <3, 4, 5>, 567.89)

IIRC, someone came up with a way to "trick" POV-Ray to "mix" element types using
arrays of arrays....


Post a reply to this message

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