iPadLIDARScanExport
iPadLIDARScanExport copied to clipboard
Any way to apply texture to the 3D model?
Yes, try below code for export texture to the 3D model
`let documentDirURL = try! FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
// let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
//let documentsDirectory = paths[0]
let filename = documentDirURL.appendingPathComponent("3d_Model.usdz")
self.sceneModel.write(to: filename, options: nil, delegate: nil, progressHandler: nil)
let activityController = UIActivityViewController(activityItems: [filename], applicationActivities: nil)
// activityController.popoverPresentationController?.sourceView = sender
self.present(activityController, animated: true, completion: nil)`
No, this doesnt work!
did you find anything? @jaswant-iotric