Notifications
Clear all

[Closed] Find imediate neighbouring objects

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
 rdg

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

You could take a look to octrees. Each node maintains pointers to each of its 6 neighbours, just what you need.