Check if all elements are tets or triangles