Error with index -1 is out of bounds for axis 0 with size 0

Read Read before posting: How do I get my question answered?

The code you posted is not reproducible because:

  • we don’t have the mesh
  • most likely, we don’t have the patience to re-type on our own every line of the code you posted in the screenshot :wink: