Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="nx"></param>
        /// <param name="ny"></param>
        /// <param name="nz"></param>
        public void Create(int nx, int ny, int nz)
        {
            Remove();
            _nx = nx;
            _ny = ny;
            _nz = nz;

            _ffRandom = new FastFakeRandom(1024, 0, 1);

            InitData(nx, ny, nz);

            for (int k = 0; k < 2; k++)
            {
                CreateVolTexture((VolTextureId)k, nx, ny, nz);
            }

            this.IsCreated = true;
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        public void Remove()
        {
            if (!this.IsCreated)
            {
                return;
            }

            for (int k = 0; k < 2; k++)
            {
                TextureManager.Singleton.Remove(_volTextures[k].Name);
                _volTextures[k] = null;
            }

            Delete3DCellArray(_cellsCurrent, _nx, _ny);
            Delete3DCellArray(_cellsTmp, _nx, _ny);

            _ffRandom      = null;
            this.IsCreated = false;
        }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        public void Remove()
        {
            if (!this.IsCreated)
            {
                return;
            }

            for (int k = 0; k < 2; k++)
            {
                TextureManager.Singleton.Remove(_volTextures[k].Name);
                _volTextures[k] = null;
            }

            Delete3DCellArray(_cellsCurrent, _nx, _ny);
            Delete3DCellArray(_cellsTmp, _nx, _ny);

            _ffRandom = null;
            this.IsCreated = false;
        }
Example #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="nx"></param>
        /// <param name="ny"></param>
        /// <param name="nz"></param>
        public void Create(int nx, int ny, int nz)
        {
            Remove();
            _nx = nx;
            _ny = ny;
            _nz = nz;

            _ffRandom = new FastFakeRandom(1024, 0, 1);

            InitData(nx, ny, nz);

            for (int k = 0; k < 2; k++)
            {
                CreateVolTexture((VolTextureId)k, nx, ny, nz);
            }

            this.IsCreated = true;
        }