Implementation of mesh-based weight windows.