cropping mesh (and clipCorners) no longer works

  • Concern : API/UI
  • Platform : macOS/Linux/Windows
  • Problem Description : Cropping the corners of the mesh (clipCorners in Project.showResults) no longer crops the corners
  • How to reproduce it : Use the code below or in the GUI simply check "Crop corners" checkbox in the inversion>results tab
k = Project(typ='R2')
k.setElec(np.c_[np.linspace(0,5.75, 24), np.zeros((24, 2))])
k.createMesh()
k.addRegion(np.array([[1,0],[2,0],[2,-0.5],[1,-0.5],[1,0]]), 10, -3)
k.createSequence()
k.forward(noise=5)
k.invert()
k.showResults(index=1, clipCorners=True)

You can also see the issue exists when inverting a 2D dataset with topography. The bottom of the mesh does not follow the topography anymore

Edited by Sina Saneiyan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information