The script is a vector based attractor script using multiple attractors, which in this case 2 attractors. The attractor will deform the surface by pushing or pulling the u and v points on the surface. After deforming the surface, the segmented/subset surface will be populated with pyramid looking component.
Vector based attractor is a bit more complicated than normal attractor. However in multiple vector based attractors we don't have to evaluate the distance between point list to the attractor. All we have to do is just add the final vector and voila!.. it happens.