POV-Ray : Newsgroups : povray.programming : Feature request - modification of dimensions() function. Server Time
2 May 2024 20:43:05 EDT (-0400)
  Feature request - modification of dimensions() function. (Message 1 to 3 of 3)  
From: Anonymous
Subject: Feature request - modification of dimensions() function.
Date: 13 Dec 2005 11:02:32
Message: <0512131100341@news.povray.org>
Hi all,
I was wondering if any of you has ever ran into trouble trying to identify whether a
declared variable is a scalar or an array.
Unless I've missed something, there doesn't seem to be a method that would allow a
macro to distinguish between the two.
If that's true, perhaps a modification to dimensions() would be useful.
If dimensions() is passed a float or vector identifier, parsing fails at that point.
What if the function returned a zero if passed a float or vector instead?
I haven't examined the internal workings to see if that would be a quick thing to
implement.
Any thoughts?


Thanks,
Mark LaBonte.


Post a reply to this message

From: Tim Nikias
Subject: Re: Feature request - modification of dimensions() function.
Date: 13 Dec 2005 11:18:54
Message: <439ef46e$1@news.povray.org>
> I was wondering if any of you has ever ran into trouble trying to identify
whether a declared variable is a scalar or an array.

Well, usually when you script things yourself, you should know whats going
in and out of macros and scripts. Unless you need/want some way to have a
part of script do different things based upon float or array, I'm not sure
if the effort is actually worth it, I've never needed it. Where do you need
it? I'm curious. :-)

And you could always declare one-dimensional-arrays as well.

Regards,
Tim

-- 
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Feature request - modification of dimensions() function.
Date: 13 Dec 2005 12:11:03
Message: <439f00a7$1@news.povray.org>
Anonymous wrote:
> Hi all,
> I was wondering if any of you has ever ran into trouble trying to
> identify whether a declared variable is a scalar or an array. Unless I've
> missed something, there doesn't seem to be a method that would allow a
> macro to distinguish between the two. If that's true, perhaps a
> modification to dimensions() would be useful.

This is the wrong group for this question.  This group is for discussion of 
the POV-Ray source code, not the features of POV-Ray and not for making 
feature suggestions.  Questions and feature requests about using POV-Ray 
should be asked/made in either povray.general or povray.newusers.

	Thorsten, POV-Team


Post a reply to this message

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