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