`to_tris` is unused