Question: why is azkaban a triangle?
Answer: The triangular shape was just the imagination of the filmmakers since Harry never really saw Azkaban and could not describe its appearance in the books. Other artist's depictions of Azkaban appear to be a regular tall prison tower with four outer walls instead of three.