the building has three naves and a polygonal apse