Triangle pattern on triangle surface

Hello. This pattern works really well but I need it to work for a triangular surface. Right now it only works on a 90 degree rectangle and the pattern becomes morphed when it is put on a trianglular surface. Can someone please help me out? triangle pattern (16.6 KB)