MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / export_obj_model

Method export_obj_model

libraries/lib-model-io/src/model-io.cpp:315–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315bool polymer::export_obj_model(const std::string & name, const std::string & filename, runtime_mesh & mesh)
316{
317 std::ofstream file(filename);
318
319 if (!file.is_open()) return false;
320
321 file.precision(3);
322 file << "# OBJ file created by Polymer\n";
323 file << "o " << name << "\n";
324
325 export_obj_data(file, mesh);
326
327 file.close();
328
329 return true;
330}
331
332bool polymer::export_obj_multi_model(const std::vector<std::string> & names, const std::string & filename, std::vector<runtime_mesh *> & meshes)
333{

Callers

nothing calls this directly

Calls 1

export_obj_dataFunction · 0.85

Tested by

no test coverage detected