Fix off-by-one error in creation of triangle points.