如何在 Web 应用程序中加载 .STEP/.STP 文件以进行可视化? [英] How to load .STEP / .STP file in web application for visualization purpose?

查看:58
本文介绍了如何在 Web 应用程序中加载 .STEP/.STP 文件以进行可视化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Web 应用程序中尝试 3D 可视化,目前使用three.js.我能够为下一阶段加载 .stl 文件我想加载 .STEP/.STP 文件但无法加载它,有什么办法吗?我做了一些研究,发现它可以使用 pythonOCC 来完成,但我不知道,所以请提出建议.提前致谢

I am trying 3D visualization in web application,currently using three.js. I am able to load .stl file for next phase i want to load .STEP / .STP file but unable to load it, is there is any way ? i have done some research and found that it can be done using pythonOCC but i have no idea about it so please suggest. Thank you in advance

推荐答案

这在前端是不容易做到的.您可能需要一个与three.js 一样大的库来处理步骤文件并将它们转换为网格.OCC 可能代表 Open Cascade.这可能比作为渲染库的 Three.js 多出几个数量级.

This cannot be done on the front end easily. You probably need a library as big as three.js to process the step files and turn them into a mesh. OCC probably stands for Open Cascade. Which probably does orders of magnitude more than three.js which is a rendering library.

这似乎有一些关于该主题的信息,如果您决定继续进行,看起来可能与 javascript 相关.

This seems to have some information on the topic, looks like there might be something javascript related if you decide to pursue this.

https://github.com/mrdoob/three.js/issues/7125

这篇关于如何在 Web 应用程序中加载 .STEP/.STP 文件以进行可视化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆