{ "info": { "author": "Miro Hron\u010dok", "author_email": "miro@hroncok.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "stlsort\n=======\n\n.. image:: https://badge.fury.io/py/stlsort.svg\n :target: http://badge.fury.io/py/stlsort\n\n.. image:: https://pypip.in/d/stlsort/badge.png\n :target: https://pypi.python.org/pypi/stlsort\n\nSome tools such as OpenSCAD produce randomly ordered STL files so source control like git can't tell if they have changed or not.\nThis tool orders each triangle to start with the lowest vertex first (comparing x, then y, then z).\nIt then sorts the triangles to start with the one with the lowest vertices first (comparing first vertex, second, then third).\nThis has no effect on the model but makes the STL consistent. I.e. it makes a canonical form.\n\nSort your STL files before committing changes! Add a pre-commit hook like this:\n\n\n.. code:: sh\n\n #!/bin/sh\n # This was not tested with filenames containing spaces\n files=`git diff --cached --name-only --diff-filter=ACM | grep .stl$ | tr '\\n' ' '`\n if [[ x\"$files\" != x ]]; then\n stlsort $files\n git add $files\n fi\n\nThis was created by nop head as a part of `Mendel90 `_ repository. Works only for ASCII STLs (convert your STLs from binary to ASCII in pre-commit hook if needed).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hroncok/stlsort", "keywords": "STL,mesh,3D,sort,git", "license": "GPLv2", "maintainer": null, "maintainer_email": null, "name": "stlsort", "package_url": "https://pypi.org/project/stlsort/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/stlsort/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hroncok/stlsort" }, "release_url": "https://pypi.org/project/stlsort/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Sort ASCII STL files for better version control", "version": "0.0.3" }, "last_serial": 1439367, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b939d87891a67f49decc14b5b33e19dc", "sha256": "48bc8bab9d91b431d888489ea87857937aa73240f21b25b7ea6f4e87fd000424" }, "downloads": -1, "filename": "stlsort-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b939d87891a67f49decc14b5b33e19dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8757, "upload_time": "2014-09-01T18:34:04", "url": "https://files.pythonhosted.org/packages/14/80/879c0c1f81c22e540a9ca3c40bc665e2081a9281c5b5aa342f7b29f3a57b/stlsort-0.0.1.tar.gz" } ], "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "4257e7db2dea7abbdb7310d6e8f5cc4b", "sha256": "1939cf1e212ca8ad1057b1745b7d9451cb5876fcaf3c4362d7963c0d8d7aa6f6" }, "downloads": -1, "filename": "stlsort-0.0.3.tar.gz", "has_sig": false, "md5_digest": "4257e7db2dea7abbdb7310d6e8f5cc4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9660, "upload_time": "2015-02-26T14:30:12", "url": "https://files.pythonhosted.org/packages/af/02/0fb21923ce1f37362f2caf85c73e99940b03cffc58136260f7dd7d68d250/stlsort-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4257e7db2dea7abbdb7310d6e8f5cc4b", "sha256": "1939cf1e212ca8ad1057b1745b7d9451cb5876fcaf3c4362d7963c0d8d7aa6f6" }, "downloads": -1, "filename": "stlsort-0.0.3.tar.gz", "has_sig": false, "md5_digest": "4257e7db2dea7abbdb7310d6e8f5cc4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9660, "upload_time": "2015-02-26T14:30:12", "url": "https://files.pythonhosted.org/packages/af/02/0fb21923ce1f37362f2caf85c73e99940b03cffc58136260f7dd7d68d250/stlsort-0.0.3.tar.gz" } ] }