View Full Version : Find imediate neighbouring objects
fabianofriedrich 12-13-2006, 03:32 PM I need to create a function that finds the imediate neighbouring object of a cell in a 3D matrix, for a future use in a cellular automata.
Any ideas?
Here is the link to the sample MAX file > HERE (http://www.tzero.org/cgtalk/matrix.max)
THX,
F.
|
|
This seems to be a max9 file?
But there are tons of cellular automata implementation for various languages on the net.
I guess you could adapt one of those to maxscript.
I am looking foward to see this.
Georg
HalfVector
12-13-2006, 09:14 PM
You could take a look to octrees. Each node maintains pointers to each of its 6 neighbours, just what you need.
CGTalk Moderation
12-13-2006, 09:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.