Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
#include <tiny_obj_loader.h>
Load a Wavefront OBJ file and print number of shapes
#include <tiny_obj_loader.h>
#include <iostream>
int main() {
tinyobj::attrib_t attrib;
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string warn, err;
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, "model.obj");
if (!warn.empty()) std::cout << warn << std::endl;
if (!err.empty()) std::cerr << err << std::endl;
if (!ret) {
std::cerr << "Failed to load OBJ" << std::endl;
return 1;
}
std::cout << "Loaded " << shapes.size() << " shapes" << std::endl;
return 0;
}
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.
Resources
No resource links recorded.