v2 API
| 501 | |
| 502 | // v2 API |
| 503 | struct ObjReaderConfig { |
| 504 | bool triangulate; // triangulate polygon? |
| 505 | |
| 506 | // Currently not used. |
| 507 | // "simple" or empty: Create triangle fan |
| 508 | // "earcut": Use the algorithm based on Ear clipping |
| 509 | std::string triangulation_method; |
| 510 | |
| 511 | /// Parse vertex color. |
| 512 | /// If vertex color is not present, its filled with default value. |
| 513 | /// false = no vertex color |
| 514 | /// This will increase memory of parsed .obj |
| 515 | bool vertex_color; |
| 516 | |
| 517 | /// |
| 518 | /// Search path to .mtl file. |
| 519 | /// Default = "" = search from the same directory of .obj file. |
| 520 | /// Valid only when loading .obj from a file. |
| 521 | /// |
| 522 | std::string mtl_search_path; |
| 523 | |
| 524 | ObjReaderConfig() |
| 525 | : triangulate(true), triangulation_method("simple"), vertex_color(true) {} |
| 526 | }; |
| 527 | |
| 528 | /// |
| 529 | /// Wavefront .obj reader class(v2 API) |
no outgoing calls
no test coverage detected