Added some core functionality to the Tri and Quad structures.