0

I am trying to import a 3D file created by TexGen in python. I would like to have a dask array at the end for further analysis. My file is in ".igs" format. I can open it with FreeCAD and export it in a variety of formats. I just don't know which format to use and which library in python is more helpful.

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.

Any suggestions?

273K
  • 29,503
  • 10
  • 41
  • 64
  • Indeed, the first step to making something a dask array is to figure out how to load a smaller version into a numpy array. – mdurant Jan 29 '21 at 14:30

1 Answers1

0

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.

jimy byerley
  • 129
  • 1
  • 6