POV-Ray : Newsgroups : povray.general : concat for variable identifier? : concat for variable identifier? Server Time
19 Nov 2024 11:47:35 EST (-0500)
  concat for variable identifier?  
From: Sebastian H 
Date: 3 Mar 2002 11:27:59
Message: <3C824F76.6050806@web.de>
Hi there
I got a question over here.

I got a database like this:

.
.
.
upper_axis = <x, y, z>;
upper_angle = a;
upper_pos = <x, y, z>

head_axis = <x, y, z>;
head_angle = a;
head_pos = <x,y,z>
.
.
.

Now I try to write a macro which only takes the argument "head" or "upper":

#macro (OBJ)
.
.
.
#end

Inside the macro should have access to OBJ_axis or OBJ_angle so I need a 
  function like *concat (OBJ, "_axis")* that does not return a string 
but the variable identifier.

Is this anyhow possible in POV?

Sebastian H.


Post a reply to this message

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