27 ss_ <<
"v " << vertex.position[0] <<
" " << vertex.position[1] <<
" " << vertex.position[2] <<
"\n";
29 ss_ <<
"vn " << vertex.normal[0] <<
" " << vertex.normal[1] <<
" " << vertex.normal[2] <<
"\n";
31 ss_ <<
"vt " << vertex.tex_coord[0] <<
" " << vertex.tex_coord[1] <<
"\n";
34 for(
const triangle_t& triangle : mesh.triangles())
36 auto t = triangle.vertices + base_;
37 ss_ <<
"f " << t[0] <<
"/" << t[0] <<
"/" << t[0] <<
" " << t[1] <<
"/" << t[1] <<
"/" << t[1] <<
" "
38 << t[2] <<
"/" << t[2] <<
"/" << t[2] <<
"\n";