correct triangle height calculations
previously the "y" offset was not being calculated so this was added. Also added interspace to avoid mixing border pixel values from surrounding patches.