using std::max;
using std::vector;
struct Vertex
{
Vec3f position;
Vec3f normal;
Vec2f texcoord;
};
istream& operator >> (istream& is, Vertex& v)
{
return is >> v.position.x >>
v.position.y >>
v.position.z >>
v.normal.x >>
v.normal.y >>
v.normal.z >>
v.texcoord.x >> |