connecting curved elements