code: def remove_infinite_values(self):
          
          if util.is_shape(self.faces, (-1, 3)):
              # (len(self.faces),) bool, mask for faces
              face_mask = np.isfinite(self.faces).all(axis=1)
              self.update_faces(face_mask)
  
          if util.is_shape(self.vertices, (-1, 3)):
              # (len(self.vertices),) bool, mask for vertices
              vertex_mask = np.isfinite(self.vertices).all(axis=1)
              self.update_vertices(vertex_mask)
docs: Ensure that every vertex and face consists of finite numbers.
  
          This will remove vertices or faces containing np.nan and np.inf
  
          Alters
          ----------
          self.faces : masked to remove np.inf/np.nan
          self.vertices : masked to remove np.inf/np.nan