Update document and version.
This commit is contained in:
@@ -21,6 +21,7 @@ Tiny but powerful single file wavefront obj loader written in C++. No dependency
|
|||||||
What's new
|
What's new
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
* Mar 13, 2016 : Introduce `load_flag_t` and flat normal calculation flag! Thanks Vazquinhos!
|
||||||
* Jan 29, 2016 : Support n-polygon(no triangulation) and OpenSubdiv crease tag! Thanks dboogert!
|
* Jan 29, 2016 : Support n-polygon(no triangulation) and OpenSubdiv crease tag! Thanks dboogert!
|
||||||
* Nov 26, 2015 : Now single-header only!.
|
* Nov 26, 2015 : Now single-header only!.
|
||||||
* Nov 08, 2015 : Improved API.
|
* Nov 08, 2015 : Improved API.
|
||||||
@@ -163,8 +164,8 @@ std::vector<tinyobj::shape_t> shapes;
|
|||||||
std::vector<tinyobj::material_t> materials;
|
std::vector<tinyobj::material_t> materials;
|
||||||
|
|
||||||
std::string err;
|
std::string err;
|
||||||
bool triangulate = false;
|
int flags = 1; // see load_flags_t enum for more information.
|
||||||
bool ret = tinyobj::LoadObj(shapes, materials, err, inputfile.c_str(), triangulate);
|
bool ret = tinyobj::LoadObj(shapes, materials, err, inputfile.c_str(), flags);
|
||||||
|
|
||||||
if (!err.empty()) { // `err` may contain warning message.
|
if (!err.empty()) { // `err` may contain warning message.
|
||||||
std::cerr << err << std::endl;
|
std::cerr << err << std::endl;
|
||||||
|
|||||||
2
test.cc
2
test.cc
@@ -272,7 +272,7 @@ main(
|
|||||||
//assert(true == TestLoadObj("cornell_box.obj"));
|
//assert(true == TestLoadObj("cornell_box.obj"));
|
||||||
//assert(true == TestLoadObj("cube.obj"));
|
//assert(true == TestLoadObj("cube.obj"));
|
||||||
assert(true == TestStreamLoadObj());
|
assert(true == TestStreamLoadObj());
|
||||||
assert(true == TestLoadObj("catmark_torus_creases0.obj", NULL, false));
|
assert(true == TestLoadObj("catmark_torus_creases0.obj", NULL, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// version 0.9.22: Introduce `load_flags_t`.
|
||||||
// version 0.9.20: Fixes creating per-face material using `usemtl`(#68)
|
// version 0.9.20: Fixes creating per-face material using `usemtl`(#68)
|
||||||
// version 0.9.17: Support n-polygon and crease tag(OpenSubdiv extension)
|
// version 0.9.17: Support n-polygon and crease tag(OpenSubdiv extension)
|
||||||
// version 0.9.16: Make tinyobjloader header-only
|
// version 0.9.16: Make tinyobjloader header-only
|
||||||
|
|||||||
Reference in New Issue
Block a user