MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / ObjReaderConfig

Class ObjReaderConfig

engine/3rdparty/tinyobjloader/tiny_obj_loader.h:503–526  ·  view source on GitHub ↗

v2 API

Source from the content-addressed store, hash-verified

501
502// v2 API
503struct 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)

Callers 2

ObjReaderClass · 0.85
PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected