Flanges, valves and other special-shaped pipe fittings