| 313 | } |
| 314 | |
| 315 | bool 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 | |
| 332 | bool polymer::export_obj_multi_model(const std::vector<std::string> & names, const std::string & filename, std::vector<runtime_mesh *> & meshes) |
| 333 | { |
nothing calls this directly
no test coverage detected