Part of #118145. Apply the brush refactor to the remaining part of the cloth brush. Factor some of the forces calculations into common functions shared between the implementations for the three geometry types. Also change the cloth filter a bit to ease sharing code with the brush.