Assemble waveguide with flanges