POV-Ray : Newsgroups : povray.general : Automatically named identifiers : Automatically named identifiers Server Time
2 Dec 2024 18:35:45 EST (-0500)
  Automatically named identifiers  
From: Thomas Fester
Date: 4 Nov 2024 17:55:00
Message: <web.6729503a3c415faa6c6071e48a2a825f@news.povray.org>
Hello everybody: I have got a (seemingly) simple programing question: Suppose I
I want to declare a number of splines in a loop-process with one spline per
loop. The splines should have identifiers like SplineXA, SplineXB, SplineXC and
so on. Is there a way to automatically generate such names within the loops? At
the moment I am only able to explicitely generate every identifier on its own.
To make it more clear: Is it possible to have a loop for:

#declare SplineXA  = spline {
    cubic_spline
....
}

#declare SplineXB  = spline {
    cubic_spline
....
}

#declare SplineXC  = spline {
    cubic_spline
....
}

#declare SplineXD  = spline {
    cubic_spline
....
}

....

Best regards and thanks in advance!

Thomas


Post a reply to this message

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