POV-Ray : Newsgroups : povray.general : Did you know? : Did you know? Server Time
2 Oct 2025 23:56:34 EDT (-0400)
  Did you know?  
From: Leroy
Date: 25 Sep 2025 18:50:00
Message: <web.68d5c6082454b812823d762af712fc00@news.povray.org>
Variables can act as any type. Like this

#declare A="35542";
#declare B="35542";   #debug concat("A,B",A,B"\n")
#declare A=45;        #debug concat("A =",str(A,0,0),"\n")
#declare B=-45;       #debug concat("B =",str(B,0,0),"\n")
#declare A=<4,5,6>;   #debug concat("A= <",vstr(3,A,",",3,3),">\n")
#declare B=B+<6,5,4>; #debug concat("B= <",vstr(3,B,",",3,3),">\n")
#declare A=box{-1,1}
#declare B=pigment{Red}
object{A pigment{B}}

This works on 3.7 & 3.8 win versions.

Have Fun!


Post a reply to this message

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