import SwiftUI

struct Sample3D: Identifiable {
    let id = UUID()
    let x: Double
    let y: Double
    let z: Double
}
@Observable class ApplicationData {
   var values: [Sample3D] = []

   static let shared: ApplicationData = ApplicationData()
   private init() {
      for x in 0..<15 {
        for y in 0..<15 {
           let xValue = Double(x)
           let yValue = Double(y)
           let zValue = (sin(xValue * 0.4) + cos(yValue * 0.4)) * 2
           values.append(Sample3D(x: xValue, y: yValue, z: zValue))
        }
      }
   }
}