Cannot think of a way to do this with walls of the top of my sleepy head.
But, you can create those shapes with GDL script ... or visually in ArchiForma (Cigraph plug-in). Just a Ruled surface (either GDL or ArchiForma) would do it...with the top and bottoms of your walls being the match lines unless the wall is to bulge too... then probably need a Coons. The result would be an object, not a wall.
Karl
One of the forum moderators
AC 27 USA and earlier • macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB