|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> Are you aware of:
>
http://news.povray.org/povray.text.tutorials/thread/%3C3f13449b$1@news.povray.org%3E/
This is fantastic -- IF I have to write a work around.
> Not sure if that helps at all.
I wouldn't have been even closely where to begin searching the archives. Much
thanks.
[[ What I really want is a way to keep track of a core object's location and
orientation as it becomes part of more complex objects ]]
What I am up to is modeling the ARP 2500 modular synthesizer.
https://encyclotronic.com/synthesizers/arp/2500-r167/
Instead of planting arbitrary knob positions and the matrix switch panels for
every instance of module, I used some data abstraction. An entire System is a
dictionary, divided into one or more cabinets filled with info on the modules'
state. For now the data structure is:
//=============Code==========
#declare System = dictionary {
.ACabinet: array <mixed> [ slotsInCabinet ][ controlValues ] {
// First slot
{ moduleID.float, panelSize.float, topJackPosition[20].{locVect, rotVect},
bottomJackPositions[20].{locVect, rotVect} }
// Middle slots
{ moduleID.float, panelSize.float, topSliderPositions[],
bottomSliderPositions[] }
// Last slot, same as the first
} // end of .ACabinet
.... more cabinets and components
} // end of System
Post a reply to this message
|
 |