internal T GetValue(int x, int y, int z, int minlevel) { OctreeNode <T> n = Get(x, y, z, 32); if (n == null) { return(default(T)); } return(n.GetValue()); }
// Very expensive method, has to traverse the complete octree public sbyte this[int x, int y, int z] { get { return(_head.GetValue((short)x, (short)y, (short)z, 32)); } set { _head.Set((short)x, (short)y, (short)z, value, 32); } }