correctly draw tree out of rectangle mesh