-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModels.swift
More file actions
43 lines (38 loc) · 1.04 KB
/
Copy pathModels.swift
File metadata and controls
43 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Models.swift
// RoomScanner
//
// Data models for room scans
//
import Foundation
import RoomPlan
struct RoomScan: Identifiable, Codable {
let id: UUID
let name: String
let date: Date
let fileName: String
var thumbnailData: Data?
init(name: String, fileName: String) {
self.id = UUID()
self.name = name
self.date = Date()
self.fileName = fileName
}
}
struct ExportFormat: Identifiable {
let id = UUID()
let name: String
let fileExtension: String
let description: String
}
let exportFormats = [
ExportFormat(name: "USD (Universal Scene Description)",
fileExtension: "usd",
description: "Apple's 3D format, best for AR/VR"),
ExportFormat(name: "USDZ (USD Archive)",
fileExtension: "usdz",
description: "Compressed USD, ideal for sharing"),
ExportFormat(name: "JSON (Custom)",
fileExtension: "json",
description: "Raw data export for Python processing")
]