简体   繁体   English

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

[英]Importing 3D CAD files in python as dask array

I am trying to import a 3D file created by TexGen in python.我正在尝试导入由TexGen在 python 中创建的 3D 文件。 I would like to have a dask array at the end for further analysis.我想在最后有一个 dask 数组以供进一步分析。 My file is in ".igs" format.我的文件是“.igs”格式。 I can open it with FreeCAD and export it in a variety of formats.我可以用FreeCAD打开它并以多种格式导出。 I just don't know which format to use and which library in python is more helpful.我只是不知道使用哪种格式以及 python 中的哪个库更有帮助。

I found this question ( Import CAD object in Python and store as array ) and tried installing FreeCAD package in python but I was unsuccessful. I found this question ( Import CAD object in Python and store as array ) and tried installing FreeCAD package in python but I was unsuccessful. I get a conflict error (incompatible packages) which I can't solve.我遇到无法解决的冲突错误(不兼容的软件包)。

I found this question ( 3D CAD to OpenGL ) and installed PyOpenGL but I don't know how to use OpenGL to import STL file.我发现了这个问题( 3D CAD 到 OpenGL )并安装了 PyOpenGL 但我不知道如何使用 OpenGL 导入 Z25623E64FZF 文件。

Any suggestions?有什么建议么?

You can have a look at the opencascade python module OpenCascade is the library FreeCAD is based on, it can also import/export.stp (and I guess.igs) files and transform it into a mesh.您可以查看opencascade python 模块OpenCascade 是 FreeCAD 所基于的库,它还可以导入/导出.stp(我猜是.igs)文件并将其转换为网格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM