{"id":26400073,"url":"https://github.com/syoyo/tinyobjloader","last_synced_at":"2025-03-17T14:01:16.032Z","repository":{"id":4291044,"uuid":"5421296","full_name":"tinyobjloader/tinyobjloader","owner":"tinyobjloader","description":"Tiny but powerful single file wavefront obj loader","archived":false,"fork":false,"pushed_at":"2025-01-29T13:47:59.000Z","size":3748,"stargazers_count":3453,"open_issues_count":22,"forks_count":613,"subscribers_count":98,"default_branch":"release","last_synced_at":"2025-03-11T23:03:22.398Z","etag":null,"topics":["3d","c-plus-plus","cpp","loader","wavefront"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinyobjloader.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"syoyo","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2012-08-15T02:44:30.000Z","updated_at":"2025-03-11T15:55:58.000Z","dependencies_parsed_at":"2023-07-07T16:33:27.260Z","dependency_job_id":"dda1e8fd-2338-4c18-b78b-80e4f27e0a65","html_url":"https://github.com/tinyobjloader/tinyobjloader","commit_stats":{"total_commits":636,"total_committers":111,"mean_commits":5.72972972972973,"dds":"0.32704402515723274","last_synced_commit":"fe9e7130a0eee720a28f39b33852108217114076"},"previous_names":["syoyo/tinyobjloader"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyobjloader%2Ftinyobjloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyobjloader%2Ftinyobjloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyobjloader%2Ftinyobjloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyobjloader%2Ftinyobjloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyobjloader","download_url":"https://codeload.github.com/tinyobjloader/tinyobjloader/tar.gz/refs/heads/release","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047608,"owners_count":20389205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","c-plus-plus","cpp","loader","wavefront"],"created_at":"2025-03-17T14:00:38.227Z","updated_at":"2025-03-17T14:01:15.987Z","avatar_url":"https://github.com/tinyobjloader.png","language":"C++","readme":"# tinyobjloader\n\n[![PyPI version](https://badge.fury.io/py/tinyobjloader.svg)](https://badge.fury.io/py/tinyobjloader)\n\n[![AZ Build Status](https://dev.azure.com/tinyobjloader/tinyobjloader/_apis/build/status/tinyobjloader.tinyobjloader?branchName=master)](https://dev.azure.com/tinyobjloader/tinyobjloader/_build/latest?definitionId=1\u0026branchName=master)\n\n[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/m6wfkvket7gth8wn/branch/master?svg=true)](https://ci.appveyor.com/project/syoyo/tinyobjloader-6e4qf/branch/master)\n\n[![Coverage Status](https://coveralls.io/repos/github/syoyo/tinyobjloader/badge.svg?branch=master)](https://coveralls.io/github/syoyo/tinyobjloader?branch=master)\n\n[![AUR version](https://img.shields.io/aur/version/tinyobjloader?logo=arch-linux)](https://aur.archlinux.org/packages/tinyobjloader)\n\nTiny but powerful single file wavefront obj loader written in C++03. No dependency except for C++ STL. It can parse over 10M polygons with moderate memory and time.\n\n`tinyobjloader` is good for embedding .obj loader to your (global illumination) renderer ;-)\n\nIf you are looking for C99 version, please see https://github.com/syoyo/tinyobjloader-c .\n\nVersion notice\n--------------\n\nWe recommend to use `master`(`main`) branch. Its v2.0 release candidate. Most features are now nearly robust and stable(Remaining task for release v2.0 is polishing C++ and Python API, and fix built-in triangulation code).\n\nWe have released new version v1.0.0 on 20 Aug, 2016.\nOld version is available as `v0.9.x` branch https://github.com/syoyo/tinyobjloader/tree/v0.9.x\n\n## What's new\n\n* 29 Jul, 2021 : Added Mapbox's earcut for robust triangulation. Also fixes triangulation bug(still there is some issue in built-in triangulation algorithm: https://github.com/tinyobjloader/tinyobjloader/issues/319).\n* 19 Feb, 2020 : The repository has been moved to https://github.com/tinyobjloader/tinyobjloader !\n* 18 May, 2019 : Python binding!(See `python` folder. Also see https://pypi.org/project/tinyobjloader/)\n* 14 Apr, 2019 : Bump version v2.0.0 rc0. New C++ API and python bindings!(1.x API still exists for backward compatibility)\n* 20 Aug, 2016 : Bump version v1.0.0. New data structure and API!\n\n## Requirements\n\n* C++03 compiler\n\n### Old version\n\nPrevious old version is available in `v0.9.x` branch.\n\n## Example\n\n![Rungholt](images/rungholt.jpg)\n\ntinyobjloader can successfully load 6M triangles Rungholt scene.\nhttp://casual-effects.com/data/index.html\n\n![](images/sanmugel.png)\n\n* [examples/viewer/](examples/viewer) OpenGL .obj viewer\n* [examples/callback_api/](examples/callback_api/) Callback API example\n* [examples/voxelize/](examples/voxelize/) Voxelizer example\n\n## Use case\n\nTinyObjLoader is successfully used in ...\n\n### New version(v1.0.x)\n\n* Double precision support through `TINYOBJLOADER_USE_DOUBLE` thanks to noma\n* Loading models in Vulkan Tutorial https://vulkan-tutorial.com/Loading_models\n* .obj viewer with Metal https://github.com/middlefeng/NuoModelViewer/tree/master\n* Vulkan Cookbook https://github.com/PacktPublishing/Vulkan-Cookbook\n* cudabox: CUDA Solid Voxelizer Engine https://github.com/gaspardzoss/cudavox\n* Drake: A planning, control, and analysis toolbox for nonlinear dynamical systems https://github.com/RobotLocomotion/drake\n* VFPR - a Vulkan Forward Plus Renderer : https://github.com/WindyDarian/Vulkan-Forward-Plus-Renderer\n* glslViewer: https://github.com/patriciogonzalezvivo/glslViewer\n* Lighthouse2: https://github.com/jbikker/lighthouse2\n* rayrender(an open source R package for raytracing scenes in created in R): https://github.com/tylermorganwall/rayrender\n* liblava - A modern C++ and easy-to-use framework for the Vulkan API. [MIT]: https://github.com/liblava/liblava\n* rtxON - Simple Vulkan raytracing tutorials  https://github.com/iOrange/rtxON\n* metal-ray-tracer - Writing ray-tracer using Metal Performance Shaders https://github.com/sergeyreznik/metal-ray-tracer https://sergeyreznik.github.io/metal-ray-tracer/index.html\n* Supernova Engine - 2D and 3D projects with Lua or C++ in data oriented design: https://github.com/supernovaengine/supernova\n* AGE (Arc Game Engine) - An open-source engine for building 2D \u0026 3D real-time rendering and interactive contents: https://github.com/MohitSethi99/ArcGameEngine\n* [Wicked Engine\u003cimg src=\"https://github.com/turanszkij/WickedEngine/blob/master/Content/logo_small.png\" width=\"28px\" align=\"center\"/\u003e](https://github.com/turanszkij/WickedEngine) - 3D engine with modern graphics \n* Your project here! (Letting us know via github issue is welcome!)\n\n### Old version(v0.9.x)\n\n* bullet3 https://github.com/erwincoumans/bullet3\n* pbrt-v2 https://github.com/mmp/pbrt-v2\n* OpenGL game engine development http://swarminglogic.com/jotting/2013_10_gamedev01\n* mallie https://lighttransport.github.io/mallie\n* IBLBaker (Image Based Lighting Baker). http://www.derkreature.com/iblbaker/\n* Stanford CS148 http://web.stanford.edu/class/cs148/assignments/assignment3.pdf\n* Awesome Bump http://awesomebump.besaba.com/about/\n* sdlgl3-wavefront OpenGL .obj viewer https://github.com/chrisliebert/sdlgl3-wavefront\n* pbrt-v3 https://github.com/mmp/pbrt-v3\n* cocos2d-x https://github.com/cocos2d/cocos2d-x/\n* Android Vulkan demo https://github.com/SaschaWillems/Vulkan\n* voxelizer https://github.com/karimnaaji/voxelizer\n* Probulator https://github.com/kayru/Probulator\n* OptiX Prime baking https://github.com/nvpro-samples/optix_prime_baking\n* FireRays SDK https://github.com/GPUOpen-LibrariesAndSDKs/FireRays_SDK\n* parg, tiny C library of various graphics utilities and GL demos https://github.com/prideout/parg\n* Opengl unit of ChronoEngine https://github.com/projectchrono/chrono-opengl\n* Point Based Global Illumination on modern GPU https://pbgi.wordpress.com/code-source/\n* Fast OBJ file importing and parsing in CUDA http://researchonline.jcu.edu.au/42515/1/2015.CVM.OBJCUDA.pdf\n* Sorted Shading for Uni-Directional Pathtracing by Joshua Bainbridge https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc15/02Josh/joshua_bainbridge_thesis.pdf\n* GeeXLab http://www.geeks3d.com/hacklab/20160531/geexlab-0-12-0-0-released-for-windows/\n\n\n## Features\n\n* Group(parse multiple group name)\n* Vertex\n  * Vertex color(as an extension: https://blender.stackexchange.com/questions/31997/how-can-i-get-vertex-painted-obj-files-to-import-into-blender)\n* Texcoord\n* Normal\n* Crease tag('t'). This is OpenSubdiv specific(not in wavefront .obj specification)\n* Callback API for custom loading.\n* Double precision support(for HPC application).\n* Smoothing group\n* Python binding : See `python` folder.\n  * Precompiled binary(manylinux1-x86_64 only) is hosted at pypi https://pypi.org/project/tinyobjloader/)\n\n### Primitives\n\n* [x] face(`f`)\n* [x] lines(`l`)\n* [ ] points(`p`)\n* [ ] curve\n* [ ] 2D curve\n* [ ] surface.\n* [ ] Free form curve/surfaces\n\n### Material\n\n* PBR material extension for .MTL. Please see [pbr-mtl.md](pbr-mtl.md) for details.\n* Texture options\n* Unknown material attributes are returned as key-value(value is string) map.\n\n## TODO\n\n* [ ] Fix obj_sticker example.\n* [ ] More unit test codes.\n\n## License\n\nTinyObjLoader is licensed under MIT license.\n\n### Third party licenses.\n\n* pybind11 : BSD-style license.\n* mapbox earcut.hpp: ISC License.\n\n## Usage\n\n### Installation\n\nOne option is to simply copy the header file into your project and to make sure that `TINYOBJLOADER_IMPLEMENTATION` is defined exactly once.\n\n### Building tinyobjloader - Using vcpkg(not recommended though)\n\nAlthough it is not a recommended way, you can download and install tinyobjloader using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:\n\n    git clone https://github.com/Microsoft/vcpkg.git\n    cd vcpkg\n    ./bootstrap-vcpkg.sh\n    ./vcpkg integrate install\n    ./vcpkg install tinyobjloader\n\nThe tinyobjloader port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.\n\n### Data format\n\n`attrib_t` contains single and linear array of vertex data(position, normal and texcoord).\n\n```\nattrib_t::vertices =\u003e 3 floats per vertex\n\n       v[0]        v[1]        v[2]        v[3]               v[n-1]\n  +-----------+-----------+-----------+-----------+      +-----------+\n  | x | y | z | x | y | z | x | y | z | x | y | z | .... | x | y | z |\n  +-----------+-----------+-----------+-----------+      +-----------+\n\nattrib_t::normals =\u003e 3 floats per vertex\n\n       n[0]        n[1]        n[2]        n[3]               n[n-1]\n  +-----------+-----------+-----------+-----------+      +-----------+\n  | x | y | z | x | y | z | x | y | z | x | y | z | .... | x | y | z |\n  +-----------+-----------+-----------+-----------+      +-----------+\n\nattrib_t::texcoords =\u003e 2 floats per vertex\n\n       t[0]        t[1]        t[2]        t[3]               t[n-1]\n  +-----------+-----------+-----------+-----------+      +-----------+\n  |  u  |  v  |  u  |  v  |  u  |  v  |  u  |  v  | .... |  u  |  v  |\n  +-----------+-----------+-----------+-----------+      +-----------+\n\nattrib_t::colors =\u003e 3 floats per vertex(vertex color. optional)\n\n       c[0]        c[1]        c[2]        c[3]               c[n-1]\n  +-----------+-----------+-----------+-----------+      +-----------+\n  | x | y | z | x | y | z | x | y | z | x | y | z | .... | x | y | z |\n  +-----------+-----------+-----------+-----------+      +-----------+\n\n```\n\nEach `shape_t::mesh_t` does not contain vertex data but contains array index to `attrib_t`.\nSee `loader_example.cc` for more details.\n\n\n```\n\nmesh_t::indices =\u003e array of vertex indices.\n\n  +----+----+----+----+----+----+----+----+----+----+     +--------+\n  | i0 | i1 | i2 | i3 | i4 | i5 | i6 | i7 | i8 | i9 | ... | i(n-1) |\n  +----+----+----+----+----+----+----+----+----+----+     +--------+\n\nEach index has an array index to attrib_t::vertices, attrib_t::normals and attrib_t::texcoords.\n\nmesh_t::num_face_vertices =\u003e array of the number of vertices per face(e.g. 3 = triangle, 4 = quad , 5 or more = N-gons).\n\n\n  +---+---+---+        +---+\n  | 3 | 4 | 3 | ...... | 3 |\n  +---+---+---+        +---+\n    |   |   |            |\n    |   |   |            +-----------------------------------------+\n    |   |   |                                                      |\n    |   |   +------------------------------+                       |\n    |   |                                  |                       |\n    |   +------------------+               |                       |\n    |                      |               |                       |\n    |/                     |/              |/                      |/\n\n mesh_t::indices\n\n  |    face[0]   |       face[1]     |    face[2]   |     |      face[n-1]           |\n  +----+----+----+----+----+----+----+----+----+----+     +--------+--------+--------+\n  | i0 | i1 | i2 | i3 | i4 | i5 | i6 | i7 | i8 | i9 | ... | i(n-3) | i(n-2) | i(n-1) |\n  +----+----+----+----+----+----+----+----+----+----+     +--------+--------+--------+\n\n```\n\nNote that when `triangulate` flag is true in `tinyobj::LoadObj()` argument, `num_face_vertices` are all filled with 3(triangle).\n\n### float data type\n\nTinyObjLoader now use `real_t` for floating point data type.\nDefault is `float(32bit)`.\nYou can enable `double(64bit)` precision by using `TINYOBJLOADER_USE_DOUBLE` define.\n\n### Robust triangulation\n\nWhen you enable `triangulation`(default is enabled),\nTinyObjLoader triangulate polygons(faces with 4 or more vertices).\n\nBuilt-in triangulation code may not work well in some polygon shape.\n\nYou can define `TINYOBJLOADER_USE_MAPBOX_EARCUT` for robust triangulation using `mapbox/earcut.hpp`.\nThis requires C++11 compiler though. And you need to copy `mapbox/earcut.hpp` to your project.\nIf you have your own `mapbox/earcut.hpp` file incuded in your project, you can define `TINYOBJLOADER_DONOT_INCLUDE_MAPBOX_EARCUT` so that `mapbox/earcut.hpp` is not included inside of `tiny_obj_loader.h`.\n\n#### Example code (Deprecated API)\n\n```c++\n#define TINYOBJLOADER_IMPLEMENTATION // define this in only *one* .cc\n// Optional. define TINYOBJLOADER_USE_MAPBOX_EARCUT gives robust triangulation. Requires C++11\n//#define TINYOBJLOADER_USE_MAPBOX_EARCUT\n#include \"tiny_obj_loader.h\"\n\nstd::string inputfile = \"cornell_box.obj\";\ntinyobj::attrib_t attrib;\nstd::vector\u003ctinyobj::shape_t\u003e shapes;\nstd::vector\u003ctinyobj::material_t\u003e materials;\n\nstd::string warn;\nstd::string err;\n\nbool ret = tinyobj::LoadObj(\u0026attrib, \u0026shapes, \u0026materials, \u0026warn, \u0026err, inputfile.c_str());\n\nif (!warn.empty()) {\n  std::cout \u003c\u003c warn \u003c\u003c std::endl;\n}\n\nif (!err.empty()) {\n  std::cerr \u003c\u003c err \u003c\u003c std::endl;\n}\n\nif (!ret) {\n  exit(1);\n}\n\n// Loop over shapes\nfor (size_t s = 0; s \u003c shapes.size(); s++) {\n  // Loop over faces(polygon)\n  size_t index_offset = 0;\n  for (size_t f = 0; f \u003c shapes[s].mesh.num_face_vertices.size(); f++) {\n    size_t fv = size_t(shapes[s].mesh.num_face_vertices[f]);\n\n    // Loop over vertices in the face.\n    for (size_t v = 0; v \u003c fv; v++) {\n      // access to vertex\n      tinyobj::index_t idx = shapes[s].mesh.indices[index_offset + v];\n\n      tinyobj::real_t vx = attrib.vertices[3*size_t(idx.vertex_index)+0];\n      tinyobj::real_t vy = attrib.vertices[3*size_t(idx.vertex_index)+1];\n      tinyobj::real_t vz = attrib.vertices[3*size_t(idx.vertex_index)+2];\n\n      // Check if `normal_index` is zero or positive. negative = no normal data\n      if (idx.normal_index \u003e= 0) {\n        tinyobj::real_t nx = attrib.normals[3*size_t(idx.normal_index)+0];\n        tinyobj::real_t ny = attrib.normals[3*size_t(idx.normal_index)+1];\n        tinyobj::real_t nz = attrib.normals[3*size_t(idx.normal_index)+2];\n      }\n\n      // Check if `texcoord_index` is zero or positive. negative = no texcoord data\n      if (idx.texcoord_index \u003e= 0) {\n        tinyobj::real_t tx = attrib.texcoords[2*size_t(idx.texcoord_index)+0];\n        tinyobj::real_t ty = attrib.texcoords[2*size_t(idx.texcoord_index)+1];\n      }\n      // Optional: vertex colors\n      // tinyobj::real_t red   = attrib.colors[3*size_t(idx.vertex_index)+0];\n      // tinyobj::real_t green = attrib.colors[3*size_t(idx.vertex_index)+1];\n      // tinyobj::real_t blue  = attrib.colors[3*size_t(idx.vertex_index)+2];\n    }\n    index_offset += fv;\n\n    // per-face material\n    shapes[s].mesh.material_ids[f];\n  }\n}\n\n```\n\n#### Example code (New Object Oriented API)\n\n```c++\n#define TINYOBJLOADER_IMPLEMENTATION // define this in only *one* .cc\n// Optional. define TINYOBJLOADER_USE_MAPBOX_EARCUT gives robust triangulation. Requires C++11\n//#define TINYOBJLOADER_USE_MAPBOX_EARCUT\n#include \"tiny_obj_loader.h\"\n\n\nstd::string inputfile = \"cornell_box.obj\";\ntinyobj::ObjReaderConfig reader_config;\nreader_config.mtl_search_path = \"./\"; // Path to material files\n\ntinyobj::ObjReader reader;\n\nif (!reader.ParseFromFile(inputfile, reader_config)) {\n  if (!reader.Error().empty()) {\n      std::cerr \u003c\u003c \"TinyObjReader: \" \u003c\u003c reader.Error();\n  }\n  exit(1);\n}\n\nif (!reader.Warning().empty()) {\n  std::cout \u003c\u003c \"TinyObjReader: \" \u003c\u003c reader.Warning();\n}\n\nauto\u0026 attrib = reader.GetAttrib();\nauto\u0026 shapes = reader.GetShapes();\nauto\u0026 materials = reader.GetMaterials();\n\n// Loop over shapes\nfor (size_t s = 0; s \u003c shapes.size(); s++) {\n  // Loop over faces(polygon)\n  size_t index_offset = 0;\n  for (size_t f = 0; f \u003c shapes[s].mesh.num_face_vertices.size(); f++) {\n    size_t fv = size_t(shapes[s].mesh.num_face_vertices[f]);\n\n    // Loop over vertices in the face.\n    for (size_t v = 0; v \u003c fv; v++) {\n      // access to vertex\n      tinyobj::index_t idx = shapes[s].mesh.indices[index_offset + v];\n      tinyobj::real_t vx = attrib.vertices[3*size_t(idx.vertex_index)+0];\n      tinyobj::real_t vy = attrib.vertices[3*size_t(idx.vertex_index)+1];\n      tinyobj::real_t vz = attrib.vertices[3*size_t(idx.vertex_index)+2];\n\n      // Check if `normal_index` is zero or positive. negative = no normal data\n      if (idx.normal_index \u003e= 0) {\n        tinyobj::real_t nx = attrib.normals[3*size_t(idx.normal_index)+0];\n        tinyobj::real_t ny = attrib.normals[3*size_t(idx.normal_index)+1];\n        tinyobj::real_t nz = attrib.normals[3*size_t(idx.normal_index)+2];\n      }\n\n      // Check if `texcoord_index` is zero or positive. negative = no texcoord data\n      if (idx.texcoord_index \u003e= 0) {\n        tinyobj::real_t tx = attrib.texcoords[2*size_t(idx.texcoord_index)+0];\n        tinyobj::real_t ty = attrib.texcoords[2*size_t(idx.texcoord_index)+1];\n      }\n\n      // Optional: vertex colors\n      // tinyobj::real_t red   = attrib.colors[3*size_t(idx.vertex_index)+0];\n      // tinyobj::real_t green = attrib.colors[3*size_t(idx.vertex_index)+1];\n      // tinyobj::real_t blue  = attrib.colors[3*size_t(idx.vertex_index)+2];\n    }\n    index_offset += fv;\n\n    // per-face material\n    shapes[s].mesh.material_ids[f];\n  }\n}\n\n```\n\n\n\n## Optimized loader\n\nOptimized multi-threaded .obj loader is available at `experimental/` directory.\nIf you want absolute performance to load .obj data, this optimized loader will fit your purpose.\nNote that the optimized loader uses C++11 thread and it does less error checks but may work most .obj data.\n\nHere is some benchmark result. Time are measured on MacBook 12(Early 2016, Core m5 1.2GHz).\n\n* Rungholt scene(6M triangles)\n  * old version(v0.9.x): 15500 msecs.\n  * baseline(v1.0.x): 6800 msecs(2.3x faster than old version)\n  * optimised: 1500 msecs(10x faster than old version, 4.5x faster than baseline)\n\n## Python binding\n\n```\n$ python -m pip install tinyobjloader\n```\n\nSee [python/sample.py](python/sample.py) for example use of Python binding of tinyobjloader.\n\n### CI + PyPI upload\n\ncibuildwheels + twine upload for each git tagging event is handled in Github Actions and Cirrus CI(arm builds).\n\n#### How to bump version(For developer)\n\n* Apply `black` to python files(`python/sample.py`)\n* Bump version in CMakeLists.txt\n* Commit and push `release`. Confirm C.I. build is OK.\n* Create tag starting with `v`(e.g. `v2.1.0`)\n* `git push --tags`\n  * version settings is automatically handled in python binding through setuptools_scm.\n  * cibuildwheels + pypi upload(through twine) will be automatically triggered in Github Actions + Cirrus CI.\n\n## Tests\n\nUnit tests are provided in `tests` directory. See `tests/README.md` for details.\n","funding_links":["https://github.com/sponsors/syoyo"],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyoyo%2Ftinyobjloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyoyo%2Ftinyobjloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyoyo%2Ftinyobjloader/lists"}