POV-Ray : Newsgroups : povray.beta-test : strings.inc - Triangle_Str Server Time
12 Nov 2024 16:26:49 EST (-0500)
  strings.inc - Triangle_Str (Message 1 to 2 of 2)  
From: Thorsten
Subject: strings.inc - Triangle_Str
Date: 3 Oct 2001 07:21:46
Message: <3BBAF454.CEA25819@ewetel.net>
Hello :-))

I think, the current form of Triangle_Str (strings.inc)
#macro Triangle_Str(A, B, C)
    concat("triangle {<",    vstr(3, A, ",", 0,-1), ">,<",
                            vstr(3, A, ",", 0,-1), ">,<",
                            vstr(3, A, ",", 0,-1), ">}")
#end

has to be changed to
#macro Triangle_Str(A, B, C)
    concat("triangle {<",    vstr(3, A, ",", 0,-1), ">,<",
                            vstr(3, B, ",", 0,-1), ">,<",
                            vstr(3, C, ",", 0,-1), ">}")
#end

Try this snippet:
#declare D1=<1,2,3>;
#declare D2=<4,5,6>;
#declare D3=<7,8,9>;
#debug concat("Triangle D1D2D3 ",Triangle_Str(D1,D2,D3),"\n")

Greetings :-))

Thorsten
(3.5beta4, various systems, windows)


Post a reply to this message

From: Rune
Subject: Re: strings.inc - Triangle_Str
Date: 3 Oct 2001 08:30:42
Message: <3bbb04f2@news.povray.org>
"Thorsten" wrote:
> I think, the current form of Triangle_Str has to be changed

Thanks, fixed.

Rune


Post a reply to this message

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