Part of #118145. Since there are so many contiguous arrays used in the cloth brush, this uses a different method for sharing code between the three geometry types. For multires and BMesh, a per-node array of vertex indices is created for the simulation calculation. Then the results of the simulation are similarly transferred to the geometry.