created a function to triangulate the whole object (awesome)