Load the usdc file that was packed in the usdz file Let usdc = URL(fileURLWithPath: "stratocaster_usdz/dc", relativeTo: directory) Get the path to the Downloads directory in your home folder Then use the following code: import ModelIO I have downloaded a test file from Apple's Quick Look Gallery, and unzipped an example to stratocoaster_usdz/ in my Downlaods directory. Open Xcode, create a new Playground, choose macOS as the platform. zip, unzip the file and use ModelIO to export a. If you want to export the file on a mac, change the file extension to. usdc file with textures (from the offical documentation). Let stl = URL(fileURLWithPath: "model.stl")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |