SceneKit: export scene as STL file for 3D printing

2019-09-18 02:08发布

How can you export a SceneKit scene as a STL file (for 3D printing)?

The write function from SCNScene does not appear to support the STL format.

标签: stl 3d scenekit
2条回答
兄弟一词,经得起流年.
2楼-- · 2019-09-18 02:45

you can use SCNScene's write(to:options:delegate:progressHandler:).

While the online documentation only mentions Collada and SceneKit file formats, the header documentation states that:

macOS 10.10 and lower only supports exporting to .dae files.

Starting iOS 10 exporting supports .scn as well as all file formats supported by Model I/O.

Starting macOS 10.11 exporting supports .dae, .scn as well as file all formats supported by Model I/O.

查看更多
我想做一个坏孩纸
3楼-- · 2019-09-18 03:06

The export function in ModelIO (MDLAsset) appears to support STL, but I've never tried it myself.

MDLAsset:export()

查看更多
登录 后发表回答