Transmission Through Closed Wall With Bevel Gear Drive

Green bevel gear: tooth number: 40, pitch angle: 90 deg.
Blue bevel gear: tooth number: 38, pitch angle: 71.80 deg.
Input: yellow shaft having an oblique (18.20 deg.) pivot and rotating regularly.
Output: blue gear rotating irregularly (even turning back).
Purpose of 3 pins (in pink and green) is to show that the green gear can be kept not to rotate together with the yellow shaft. So it is possible to put a flexible tube connecting the green gear and the glass wall thus to perform the transmission through closed wall on which the left bearing is fixed (see the sketch).