Text this: Design method of modular bi-directional load-bearing and energy dissipating joints in the context of intelligent construction