public IMesh CreateMesh(int seed)
        {
            var r   = new Random(seed);
            var gen = new IslandGenerater(r);

            var island = gen.GenerateIsland(r.Next(7, 20));
            var mesh   = c.BuildMesh(island);

            return(mesh);
        }
        public void TestGenerateIsland()
        {
            var gen    = new IslandGenerater(new Random(123));
            var island = gen.GenerateIsland(20);

            var c    = new VoxelMeshBuilder();
            var mesh = c.BuildMesh(island);


            var e = new Entity();

            e.Mesh = mesh;
        }
        public void TestRender100Islands()
        {
            var s   = new Seeder(123);
            var gen = new IslandGenerater(new Random(123));

            var c = new VoxelMeshBuilder();

            var scale = 25;

            var range = new Vector3(100, 10, 100) * (float)Math.Sqrt(scale);

            for (int i = 0; i < 20 * scale; i++)
            {
                var island = gen.GenerateIsland(s.NextInt(7, 20));
                var mesh   = c.BuildMesh(island);
                var e      = new Entity();
                e.Mesh        = mesh;
                e.WorldMatrix = Matrix.Translation(s.NextVector3(-range, range).dx());
            }
        }