SceneKit:将场景导出为 STL 文件以进行 3D 打印? [英] SceneKit: export scene as STL file for 3D printing?
问题描述
如何将 SceneKit 场景导出为 STL 文件(用于 3D 打印)?
How can you export a SceneKit scene as a STL file (for 3D printing)?
来自 SCNScene
的 write 函数似乎不支持 STL 格式.
The write function from SCNScene
does not appear to support the STL format.
推荐答案
你可以使用SCNScene
的write(to:options:delegate:progressHandler:)
.
虽然在线文档只提到了 Collada 和 SceneKit 文件格式,但标题文档指出:
While the online documentation only mentions Collada and SceneKit file formats, the header documentation states that:
macOS 10.10 及更低版本仅支持导出为 .dae 文件.
macOS 10.10 and lower only supports exporting to .dae files.
启动 iOS 10 导出支持 .scn 以及 Model I/O 支持的所有文件格式.
Starting iOS 10 exporting supports .scn as well as all file formats supported by Model I/O.
启动 macOS 10.11 导出支持 .dae、.scn 以及 Model I/O 支持的所有文件格式.
Starting macOS 10.11 exporting supports .dae, .scn as well as file all formats supported by Model I/O.
这篇关于SceneKit:将场景导出为 STL 文件以进行 3D 打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!