public override void init()
        {
            Device d3dDevice = GuiController.Instance.D3dDevice;

            //Crear Land
            land = new TgcEditableLand();
            land.setTexture(TgcTexture.createTexture(GuiController.Instance.ExamplesMediaDir + "MeshCreator\\Textures\\Vegetacion\\blackrock_3.jpg"));

            //Modifiers para configurar altura
            GuiController.Instance.Modifiers.addInterval("vertices", new string[] { "CENTER", "INTERIOR_RING", "EXTERIOR_RING", "TOP_SIDE", "LEFT_SIDE", "RIGHT_SIDE", "BOTTOM_SIDE" }, 0);
            GuiController.Instance.Modifiers.addFloat("height", -50, 50, 0);
            GuiController.Instance.Modifiers.addVertex2f("offset", new Vector2(-0.5f, -0.5f), new Vector2(0.9f, 0.9f), new Vector2(0, 0));
            GuiController.Instance.Modifiers.addVertex2f("tiling", new Vector2(0.1f, 0.1f), new Vector2(4, 4), new Vector2(1, 1));

            GuiController.Instance.RotCamera.targetObject(land.BoundingBox);
        }
        /// <summary>
        /// Crear un nuevo Terreno igual a este
        /// </summary>
        /// <returns>Terreno clonado</returns>
        public TgcEditableLand clone()
        {
            TgcEditableLand cloneLand = new TgcEditableLand();

            //Cargar altura de cada vertice
            for (int i = 0; i < cloneLand.editableVertices.Length; i++)
            {
                cloneLand.editableVertices[i].Pos = this.editableVertices[i].Pos;
            }
            cloneLand.setTexture(this.texture.clone());
            cloneLand.autoTransformEnable = this.autoTransformEnable;
            cloneLand.transform           = this.transform;
            cloneLand.rotation            = this.rotation;
            cloneLand.scale            = this.scale;
            cloneLand.alphaBlendEnable = this.alphaBlendEnable;
            cloneLand.uvOffset         = this.uvOffset;
            cloneLand.uvTiling         = this.uvTiling;

            cloneLand.updateValues();
            return(cloneLand);
        }
        /// <summary>
        /// Crear un nuevo Terreno igual a este
        /// </summary>
        /// <returns>Terreno clonado</returns>
        public TgcEditableLand clone()
        {
            TgcEditableLand cloneLand = new TgcEditableLand();

            //Cargar altura de cada vertice
            for (int i = 0; i < cloneLand.editableVertices.Length; i++)
            {
                cloneLand.editableVertices[i].Pos = this.editableVertices[i].Pos;
            }
            cloneLand.setTexture(this.texture.clone());
            cloneLand.autoTransformEnable = this.autoTransformEnable;
            cloneLand.transform = this.transform;
            cloneLand.rotation = this.rotation;
            cloneLand.scale = this.scale;
            cloneLand.alphaBlendEnable = this.alphaBlendEnable;
            cloneLand.uvOffset = this.uvOffset;
            cloneLand.uvTiling = this.uvTiling;

            cloneLand.updateValues();
            return cloneLand;
        }