Refactor Triangle to ease implementing the new smooth triangle with Phong shading.