Swift: Accessing the 1220 face vertices and save the vertices from AR face
问题 I am trying to get the 1220 vertices data and save them to the iPhone file. The problem I am having is I could not get the captured data and write them into the JSON structure correctly. I have: struct CaptureData { var vertices: [SIMD3<Float>] var verticesFormatted : String { let v = "<" + vertices.map{ "\($0.x):\($0.y):\($0.z)" }.joined(separator: "~") + "~t:\(String(Double(Date().timeIntervalSince1970)))>" return "\(v)" } var jsonDict:Dictionary<String, Any> = [ "facetracking_data" : "1",