{ "info": { "author": "Syoyo Fujita", "author_email": "syoyo@lighttransport.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# tinyobjloader, Wavefront .obj loader\n\n`tinyobjloader` is a python wrapper for C++ wavefront .obj loader.\n`tinyobjloader` is rather fast and feature rich than other pure python version of .obj loader.\n\n## Quick tutorial\n\n```py\nimport sys\nimport tinyobjloader\n\n# Create reader.\nreader = tinyobjloader.ObjReader()\n\nfilename = \"cornellbox.obj\"\n\n# Load .obj(and .mtl) using default configuration\nret = reader.ParseFromFile(filename)\n\nif ret == False:\n print(\"Warn:\", reader.Warning())\n pint(\"Err:\", reader.Error())\n print(\"Failed to load : \", filename)\n\n sys.exit(-1)\n\nif reader.Warning():\n print(\"Warn:\", reader.Warning())\n\nattrib = reader.GetAttrib()\nprint(\"attrib.vertices = \", len(attrib.vertices))\nprint(\"attrib.normals = \", len(attrib.normals))\nprint(\"attrib.texcoords = \", len(attrib.texcoords))\n\nmaterials = reader.GetMaterials()\nprint(\"Num materials: \", len(materials))\nfor m in materials:\n print(m.name)\n print(m.diffuse)\n\nshapes = reader.GetShapes()\nprint(\"Num shapes: \", len(shapes))\nfor shape in shapes:\n print(shape.name)\n print(\"num_indices = {}\".format(len(shape.mesh.indices)))\n\n```\n\n## More detailed usage\n\nPlease take a look at `python/sample.py` file in tinyobjloader git repo.\n\nhttps://github.com/syoyo/tinyobjloader/blob/master/python/sample.py\n\n## License\n\nMIT license.\n\n## TODO\n * [ ] Writer saver\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/syoyo/tinyobjloader", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tinyobjloader", "package_url": "https://pypi.org/project/tinyobjloader/", "platform": "", "project_url": "https://pypi.org/project/tinyobjloader/", "project_urls": { "Homepage": "https://github.com/syoyo/tinyobjloader" }, "release_url": "https://pypi.org/project/tinyobjloader/0.1/", "requires_dist": null, "requires_python": "", "summary": "Python module for tinyobjloader", "version": "0.1" }, "last_serial": 5281588, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cbf60aed4ec472c939bf1586f2dddb3c", "sha256": "65067d820e56e1a2f36ef672641f3f9885ee9724b03ececa70bffaf00e40731f" }, "downloads": -1, "filename": "tinyobjloader-0.1-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "cbf60aed4ec472c939bf1586f2dddb3c", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 1352013, "upload_time": "2019-05-17T10:08:40", "url": "https://files.pythonhosted.org/packages/78/0f/6f8b366ae3a30ce7aebd9080fea59723e459f624e64391274d9ae7cfa597/tinyobjloader-0.1-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "4b7d74bdc61dcea610b6072ea8a8122e", "sha256": "7e860164a0e633d476fbc87d05b92db13f198d96a7a1c8e556134bc1a95d6932" }, "downloads": -1, "filename": "tinyobjloader-0.1.tar.gz", "has_sig": false, "md5_digest": "4b7d74bdc61dcea610b6072ea8a8122e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3142, "upload_time": "2019-05-17T10:08:42", "url": "https://files.pythonhosted.org/packages/c0/ee/f447ed517ff301034b30a1f28fc76365f20bbb70480ca3b7d773803306b1/tinyobjloader-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cbf60aed4ec472c939bf1586f2dddb3c", "sha256": "65067d820e56e1a2f36ef672641f3f9885ee9724b03ececa70bffaf00e40731f" }, "downloads": -1, "filename": "tinyobjloader-0.1-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "cbf60aed4ec472c939bf1586f2dddb3c", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 1352013, "upload_time": "2019-05-17T10:08:40", "url": "https://files.pythonhosted.org/packages/78/0f/6f8b366ae3a30ce7aebd9080fea59723e459f624e64391274d9ae7cfa597/tinyobjloader-0.1-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "4b7d74bdc61dcea610b6072ea8a8122e", "sha256": "7e860164a0e633d476fbc87d05b92db13f198d96a7a1c8e556134bc1a95d6932" }, "downloads": -1, "filename": "tinyobjloader-0.1.tar.gz", "has_sig": false, "md5_digest": "4b7d74bdc61dcea610b6072ea8a8122e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3142, "upload_time": "2019-05-17T10:08:42", "url": "https://files.pythonhosted.org/packages/c0/ee/f447ed517ff301034b30a1f28fc76365f20bbb70480ca3b7d773803306b1/tinyobjloader-0.1.tar.gz" } ] }