Adding triangle-dimensions function