POV-Ray : Newsgroups : povray.programming : float constants in functions - bug and bugfix : Re: float constants in functions - bug and bugfix Server Time
6 Oct 2024 13:39:18 EDT (-0400)
  Re: float constants in functions - bug and bugfix  
From: Warp
Date: 5 Nov 2002 18:36:19
Message: <3dc855f3@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Well, doesn't this make it a missing feature rather than a bug?  After all,
> it simply isn't there.  Fixing the documentation is probably the better
> solution.  Espeically the various "true" and "false" constants are really
> not too useful in functions.  And "version" isn't a constant!

  IMO it would be good to add support for all the built-in variables
(constant or non-constant). It would not only be consistent, but also
handy (eg. a function could be created using frame_number or whatever).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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