MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / write_texture

Function write_texture

src/IO/OBJWriter.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void write_texture(std::ofstream& fout, const VectorF& uv) {
33 assert(uv.size() % 2 == 0);
34 const size_t num_uvs = uv.size() / 2;
35 for (size_t i=0; i<num_uvs; i++) {
36 fout << "vt " << uv[i*2] << " " << uv[i*2+1] << std::endl;
37 }
38 }
39
40 void write_faces(std::ofstream& fout,
41 const VectorI& faces,

Callers 1

write_meshMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected