Merge 2D edge and vertex implementation to slab sol.