Notifications
Clear all
[Closed] Find imediate neighbouring objects
Dec 13, 2006 4:31 pm
I need to create a function that finds 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
THX,
F.
2 Replies
Dec 13, 2006 4:32 pm
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
Dec 13, 2006 4:32 pm
You could take a look to octrees. Each node maintains pointers to each of its 6 neighbours, just what you need.