问题标签 [stl-fileformat]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
209 浏览

angular - STLLoader 是否接受 Web URL 并显示文件?

我想在 STLLoader 的帮助下从网络(https://cdn.thingiverse.com/assets/99/39/31/f9/33/90_Degree_-_4_Segments.stl)渲染或加载 .stl 文件。我在 Angular 中做这些事情。

我可以将 web url 链接放在 loader.load 中吗?Web url 链接被视为来自用户的输入。

任何人都可以建议任何方法来完成这项工作吗?

0 投票
0 回答
1144 浏览

python - 有没有另一种方法可以在 python 中读取 stl 文件?

每当我尝试做(从 stl 导入网格)时,我都会收到此错误:"No name 'mesh' in module 'stl' pylint(no-name-in-module)"

我试图这样做:

有没有可能使用python将stl文件转换为G代码的方法?

0 投票
1 回答
333 浏览

python - 在 python 中将 3D CAD 文件导入为 dask 数组

我正在尝试导入由TexGen在 python 中创建的 3D 文件。我想在最后有一个 dask 数组以供进一步分析。我的文件是“.igs”格式。我可以用FreeCAD打开它并以多种格式导出。我只是不知道使用哪种格式以及python中的哪个库更有帮助。

我发现了这个问题(Import CAD object in Python and store as array)并尝试在 python 中安装 FreeCAD 包,但没有成功。我遇到无法解决的冲突错误(不兼容的软件包)。

我发现了这个问题(3D CAD to OpenGL)并安装了 PyOpenGL,但我不知道如何使用 OpenGL 导入 STL 文件。

有什么建议么?

0 投票
0 回答
82 浏览

github - 无论如何可以在类似于图像的 github 自述文件中查看 STL 文件?

你好,我想在 README 文件中显示我的 github 存储库中的 STL 文件的预览,无论如何要这样做吗?到目前为止,我已经尝试使用
<script src="https://embed.github.com/view/3d/<username>/<repo>/<ref>/<path_to_file>"></script>
例如我的文件是
<script src="https://github.com/view/3d/UNCG-DAISY/SediNetCam/blob/main/hardware/cameracover.stl"></script>