pyvista / pyiges

Python IGES Reader
https://pyvista.github.io/pyiges/
MIT License
33 stars 8 forks source link

Fix/transformation #16

Closed HenrikHeien closed 3 years ago

HenrikHeien commented 3 years ago

I am using pyiges to create triangles from iges files. I am very happy with this package, however I do not need VTK or Pyvista in my work. I have problems when installing those packages and have found that everything works better for me without VTK and Pyvista.

Therefore I suggest using try/except when importing those packages, see code below.

Thank you

from tqdm import tqdm from pyiges.entity import Entity from pyiges import geometry

try: from vtk import vtkAppendPolyData except: pass

try: import pyvista except: pass

akaszynski commented 3 years ago

It seems that the changes for this PR were already implemented...