Example #1
0
        public static bool Save(string path, VOXHashMap map)
        {
            UnityEngine.Debug.Assert(map != null);

            var stream     = new FileStream(path, FileMode.Create, FileAccess.Write);
            var serializer = new BinaryFormatter();

            serializer.Serialize(stream, map);
            stream.Close();

            return(true);
        }
Example #2
0
        private void Grow()
        {
            var map = new VOXHashMap(_bound, _allocSize << 1 | 1);

            foreach (var it in GetEnumerator())
            {
                map.Grow(it);
            }

            _count     = map._count;
            _allocSize = map._allocSize;
            _data      = map._data;
        }