Пример #1
0
        public void Generate(CVolumeBuffer outVolume)
        {
            int size = outVolume.Size;

            for (int z = 1; z < size - 1; ++z)
            {
                for (int y = 1; y < size - 1; ++y)
                {
                    for (int x = 1; x < size - 1; ++x)
                    {
                        Byte value = 1;
                        outVolume.SetData(value, new Vector3(x, y, z));
                    }
                }
            }

            //outVolume.SetData(1, new Vector3(size/2, size/2, size/2));
        }
Пример #2
0
        public void Generate(CVolumeBuffer outVolume)
        {
            int size = outVolume.Size;

            for (int z = 1; z < size - 1; ++z)
            {
                for (int y = 1; y < size - 1; ++y)
                {
                    for (int x = 1; x < size - 1; ++x)
                    {
                        Byte value = 1;
                        outVolume.SetData(value, new Vector3(x, y, z));
                    }
                }
            }

            //outVolume.SetData(1, new Vector3(size/2, size/2, size/2));
        }
Пример #3
0
        public void Generate(CVolumeBuffer outVolume)
        {
            Random rnd = new Random();
            int size = outVolume.Size;

            for (int z = 1; z < size - 1; ++z)
            {
                for (int y = 1; y < size - 1; ++y)
                {
                    for (int x = 1; x < size - 1; ++x)
                    {
                        Byte value = 0;
                        if (rnd.NextDouble() > 0.5f)
                        {
                            value = 1;
                        }
                        outVolume.SetData(value, new Vector3(x, y, z));
                    }
                }
            }
        }
Пример #4
0
        public void Generate(CVolumeBuffer outVolume)
        {
            Random rnd  = new Random();
            int    size = outVolume.Size;

            for (int z = 1; z < size - 1; ++z)
            {
                for (int y = 1; y < size - 1; ++y)
                {
                    for (int x = 1; x < size - 1; ++x)
                    {
                        Byte value = 0;
                        if (rnd.NextDouble() > 0.5f)
                        {
                            value = 1;
                        }
                        outVolume.SetData(value, new Vector3(x, y, z));
                    }
                }
            }
        }