Take constant condition out of a loop in DrawCatenary