POV-Ray : Newsgroups : povray.beta-test : strings.inc - Triangle_Str : strings.inc - Triangle_Str Server Time
4 Nov 2024 13:46:14 EST (-0500)
  strings.inc - Triangle_Str  
From: Thorsten
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

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