POV-Ray : Newsgroups : povray.beta-test : [doc] concat with one parameter : Re: [doc] concat with one parameter Server Time
29 Jul 2024 16:19:31 EDT (-0400)
  Re: [doc] concat with one parameter  
From: Warp
Date: 22 May 2002 14:39:44
Message: <3cebe5ef@news.povray.org>
Felix Wiemann <Fel### [at] gmxnet> wrote:
>>   When you call your macro, do: MyMacro(("The string"))

> Sorry, I thought of quotation marks.
> In this example it doesn't make sense. MyMacro((S)) doesn't work either, 
> error: "Expected 'numeric expression', string identifier found instead"

  Well, it was just a guess from my part.
  With floating point numbers it works, but apparently not with strings.

> You're right. As I said, I need it for a signature, so it's important that 
> it's very short.

  There's probably another way of doing it without concats and locals. ;)

-- 
#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.