Change triangle class to Mesh class since it supports an arbitrary number of vertices