julienr / meshcut

Python 3D mesh planar cross-section
MIT License
103 stars 27 forks source link

numpy MemoryError #16

Open Harvie opened 5 years ago

Harvie commented 5 years ago

We've run into this issue: https://github.com/vlachoudis/bCNC/issues/1223 When slicing following mesh: fairy-of-the-forest20180624-11119-wpj9bg.zip

  File "/usr/local/lib/python2.7/dist-packages/bCNC/plugins/slicemesh.py", line 96, in execute
    verts, faces = self.loadMesh(file)
  File "/usr/local/lib/python2.7/dist-packages/bCNC/plugins/slicemesh.py", line 149, in loadMesh
    verts, faces = self.load_stl(file)
  File "/usr/local/lib/python2.7/dist-packages/bCNC/plugins/slicemesh.py", line 289, in load_stl
    verts, faces = self.merge_close_vertices(verts, faces)
  File "/usr/local/lib/python2.7/dist-packages/bCNC/plugins/slicemesh.py", line 244, in merge_close_vertices
    D = spdist.cdist(verts, verts)
  File "/usr/local/lib/python2.7/dist-packages/scipy/spatial/distance.py", line 2710, in cdist
    dm = np.empty((mA, mB), dtype=np.double)
MemoryError