pyvista / tetgen

A Python interface to the C++ TetGen library to generate tetrahedral meshes of any 3D polyhedral domains
http://tetgen.pyvista.org
Other
226 stars 33 forks source link

fix TypeError when accessing TetGen.mesh property #19

Closed darikg closed 4 years ago

darikg commented 4 years ago

I'm using numpy 1.18.5 on windows and I was getting TypeError: Indices must be either a mask or an integer array-like when trying to access TetGen.mesh. Specifying the dtype of the triangles array in that method as int fixes it.

akaszynski commented 4 years ago

Thanks for the fix! Looks like there's an issue when uploading to PyPi testing when outside the main repo. I've disabled that so we don't run into these issues in the future.

darikg commented 4 years ago

Ah, thanks for fixing the tests, I was a little confused there

akaszynski commented 4 years ago

This fix is live on PyPy as tetgen==0.5.1

darikg commented 4 years ago

thanks @akaszynski !