/// <summary> /// Adds elevation. /// </summary> public void AddElevation(ElevationHandler.GetElevationDelegate getElevationFunc) { // add elevation to all vertices. for (uint v = 0; v < this.VertexCount; v++) { var location = this.GetVertex(v); var elevation = getElevationFunc(location.Latitude, location.Longitude); this.UpdateVertex(v, location.Latitude, location.Longitude, elevation); } _shapes.AddElevation(getElevationFunc); }