public void FitPoly() { foreach (double station in _computer.Stations) { double x, y, z; (x, y) = _alignment.GetCoordsAt(station); z = _profile.GetElevationAt(station); _polyline.AddVertexAt(x, y, z); } }