How to use Grasshopper to transform a plan?


How do I great scripts for transforming any plans as the above? (from left to right)

You can achieve that with a Cage Edit with degree 1 or by splitting geometries and using many box morph.