POV-Ray : Newsgroups : povray.general : printing object's identifier : Re: printing object's identifier Server Time
18 May 2024 19:14:07 EDT (-0400)
  Re: printing object's identifier  
From: clipka
Date: 21 Mar 2016 05:37:49
Message: <56efc0ed$1@news.povray.org>
Am 21.03.2016 um 03:07 schrieb Bald Eagle:

> 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)

You're assuming wrong there in every respect :)


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

In this context, I guess it's worth noting that the above syntax is just
shorthand for multiple declares; there is still no tuple data type, i.e.

    #declare MyTuple = (1,2,3);
    #declare (a,b,c) = MyTuple;

will NOT work.


Post a reply to this message

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