pyvista / pymeshfix

Python Wrapper for MeshFix: easily repair holes in surface meshes
http://pymeshfix.pyvista.org
GNU General Public License v3.0
293 stars 29 forks source link

Fix repair_planar example by specifying dtype=np.int32 #28

Closed nachovizzo closed 3 years ago

nachovizzo commented 3 years ago

Fixes: "TypeError: Indices must be either a mask or an integer array-like". By inspecting the triangles array, I realized that it had dtype=np.float64.