因为LiDAR已内置于最新的2020+ iOS设备(iPhone 12专业版、iPad专业版)中。
ARKit拥有比以往更多的功能,包括支持导出到.obj。
以下是将ARReferenceObject导出到.arobject的代码
guard let testRun = self.testRun,
let object = testRun.referenceObject,
let name = object.name
else {
print("Error: Missing scanned object.")
return
}
let documentURL = FileManager.default.temporaryDirectory
.appendingPathComponent(name + ".arobject")
DispatchQueue.global().async {
do {
try object.export(to: documentURL,
previewImage: testRun.previewImage)
} catch {
fatalError("Failed to save the file to \(documentURL)")
}
}如何导出为.obj
发布于 2021-05-13 23:24:02
.arobject文件中包含的稀疏点云不能导出为3D几何图形。
所以答案是:NO。
https://stackoverflow.com/questions/67521124
复制相似问题