public void LoadDesignData(TopoPoints2 Tps2) { lastX = 10199 + xStart; lastY = 20199 + yStart; lastZ = 31200; Tps2.Initialize(new TopoStartPoint(new XYZ2(lastX, lastY, lastZ))); CreatePoints2(9, Tps2); Tps2.Finalize(new TopoEndPoint(new XYZ2(lastX, lastY, lastZ))); }
private void CreatePoints2(int qty, TopoPoints2 tps2) { int x = xStart; int y = yStart; double slope = 0.03; lastX += x; lastY += y; lastZ += CalcZ(x, y, slope); for (int i = 1; i < qty; i++) { tps2.Add(new XYZ2(lastX, lastY, lastZ)); lastX += x; lastY += y; lastZ += CalcZ(x, y, 0.03); } }