code: def remove_degenerate_faces(self, height=tol.merge):
          
          nondegenerate = triangles.nondegenerate(self.triangles,
                                                  areas=self.area_faces,
                                                  height=height)
          self.update_faces(nondegenerate)
  
          return nondegenerate
docs: Remove degenerate faces (faces without 3 unique vertex indices)
          from the current mesh.
  
          If a height is specified, it will remove any face with a 2D oriented
          bounding box with one edge shorter than that height.
  
          If not specified, it will remove any face with a zero normal.
  
          Parameters
          ------------
          height : float
            If specified removes faces with an oriented bounding
            box shorter than this on one side.
  
          Returns
          -------------
          nondegenerate : (len(self.faces),) bool
            Mask used to remove faces