convex quad function working, added combine triangles to create a quad