如何导出 SolidWorks 文件以在 WebGL 中使用?
有没有办法导出或转换 SolidWorks 文件以便以任何方式用于 WebGL?
Is there a way to export or convert a SolidWorks file to be used in any way for WebGL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不确定你想做什么,但是 http://showwebgl.com/ (请参阅 http://plopbyte.net/2011/04/showwebgl/ 进行简要说明)将上传并显示模型多种格式,并使用名为 ogs.js 的 WebGL 框架。因此,您只需将 SolidWorks 文件转换为其中之一即可。
许多 WebGL 框架都接受 Collada 格式。如果您无法找到这些信息,请告诉我。
Not sure where you want to go with this, but http://showwebgl.com/ (see http://plopbyte.net/2011/04/showwebgl/ for a brief description) will upload and display models in a variety of formats, and uses a WebGL framework called ogs.js. So you just need to convert your SolidWorks file to one of those.
A lot of WebGL frameworks accept Collada format. If you can't track these down, let me know.
这里是一个 Solidworks 插件,可以将 Solidworks 模型导出为轻量级可视化格式.pyd。 此站点有一个基于 webgl 的 pyd 查看器,用于查看已发布的 pyd 文件。
Here is a Solidworks plugin which can export Solidworks models to a lightweight visualization format .pyd. This site has a webgl based pyd viewer to view published pyd file.
您可以使用 SolidWorks 实验室页面中的 Collada 导出。但在使用 Swap3D 等工具将模型导出到 Collada 之前,您应该考虑简化模型。这将显着减小文件大小。导出零件而不是装配体时,导出到 Collada 的效果要好得多。因此,您应该始终考虑将装配体保存为零件。
You can use the Collada export from the SolidWorks labs page. But you should consider simplifying your models before exporting them to Collada with a tool like Swap3D. This will decrease filesize dramatically. Export to Collada works much better when exporting a part instead of an assembly. So you should always consider saving an assembly as part.