{ "info": { "author": "Julien Rebetez", "author_email": "julien@fhtagn.net", "bugtrack_url": null, "classifiers": [], "description": "========================================================\nmeshcut - Python utilities to slice 3D triangular meshes\n========================================================\n\n.. image:: https://img.shields.io/travis/julienr/meshcut.svg?style=flat-square\n :target: https://travis-ci.org/julienr/meshcut/\n\nFor now, this computes the planar cross-section of a 3D mesh.\n\nGiven a 3D mesh and a cut plane, this computes a (set of) polyline(s) that\nresults from cutting the mesh with the plane.\n\nRequires python and numpy. Mayavi is used for visualisation in the examples.\n\nUsage\n=====\nRun the examples with ::\n\n python examples/cross_section.py\n\nGiven ::\n\n In [17]: verts\n Out[17]:\n array([[ 1.6315 , -0.1505 , 0. ],\n [ 1.6376 , -0.1516 , 0. ],\n [ 1.6493 , -0.1518 , 0. ],\n ...,\n [ 1.62088 , -0.0263264, -0.0716966],\n [ 1.63381 , -0.0500889, 0.0726852],\n [ 1.63381 , -0.0500889, -0.0726852]])\n\n In [20]: faces\n Out[20]:\n array([[1530, 1337, 1338],\n [4549, 4725, 4548],\n [2940, 2950, 3787],\n ...,\n [3107, 3438, 3439],\n [2263, 2281, 2262],\n [3116, 3119, 4171]])\n\n In [21]: meshcut.cross_section(verts, faces, plane_orig=(1.2, -0.125, 0),\n ....: plane_normal=(1, 0, 0))\n Out[21]:\n [array([[ 1.20000000e+00, -1.28957692e-01, -1.02180769e-01],\n [ 1.20000000e+00, -1.37182869e-01, -8.06541833e-02],\n [ 1.20000000e+00, -1.36863816e-01, -6.95125000e-02],\n\n\n.. image:: screenshot.png\n :width: 50%\n\n\nThanks\n======\nThanks to @superzanti for the STL use case and the sphere model.\n\nAuthors\n=======\nJulien Rebetez\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/julienr/meshcut/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/julienr/meshcut", "keywords": "mesh,slice,cross-section,3D,triangular", "license": "", "maintainer": "", "maintainer_email": "", "name": "meshcut", "package_url": "https://pypi.org/project/meshcut/", "platform": "", "project_url": "https://pypi.org/project/meshcut/", "project_urls": { "Download": "https://github.com/julienr/meshcut/tarball/0.1", "Homepage": "https://github.com/julienr/meshcut" }, "release_url": "https://pypi.org/project/meshcut/0.2.1/", "requires_dist": [ "numpy-stl", "scipy", "numpy" ], "requires_python": "", "summary": "Utilities to slice 3D triangular meshes.", "version": "0.2.1" }, "last_serial": 4389399, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "208a33cf10da5b0c36fc3bdc7cc7d1a1", "sha256": "d3329bc592ded12d86b3188f3d65aa844a1ac3f93e40e84faa60c05c08036c9a" }, "downloads": -1, "filename": "meshcut-0.1.tar.gz", "has_sig": false, "md5_digest": "208a33cf10da5b0c36fc3bdc7cc7d1a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4408, "upload_time": "2015-05-24T12:31:58", "url": "https://files.pythonhosted.org/packages/52/b4/7ccbf22b74de2faf0a16fd511ba2b85cca3d759b8861504534cdb5fcd4c7/meshcut-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "3ce7389a0fd8e289025f20947c6b6d86", "sha256": "47b1b9bab916e93fde7279304826f420cd24b2b51492408036e3edcf1bd8f1d1" }, "downloads": -1, "filename": "meshcut-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3ce7389a0fd8e289025f20947c6b6d86", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6638, "upload_time": "2018-10-18T08:28:52", "url": "https://files.pythonhosted.org/packages/c8/8e/44f0f51607b6701e8cb4f21165c664f3d0a790e5fc04a7cdd68d1c3d08b2/meshcut-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5685e3b21bf06a84ab70070c34aebb76", "sha256": "2ccb446a9bcd4fc29aa53f32f05650efe9f69df6fe0c523a32ad3c6956c3867e" }, "downloads": -1, "filename": "meshcut-0.2.tar.gz", "has_sig": false, "md5_digest": "5685e3b21bf06a84ab70070c34aebb76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5816, "upload_time": "2018-10-18T08:28:54", "url": "https://files.pythonhosted.org/packages/6b/1a/0ecf1b22dc749cd2f252b9bbbb226c9e5cb8297dc79fa465469039279385/meshcut-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "34ec1dbbfd50b780a7097aa7440998b7", "sha256": "385fb835c9e2d3953fad49b635f6e89b419d5ed661e76ba52ba3fd339c2d055e" }, "downloads": -1, "filename": "meshcut-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "34ec1dbbfd50b780a7097aa7440998b7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6658, "upload_time": "2018-10-18T08:42:58", "url": "https://files.pythonhosted.org/packages/89/bd/8ad35e6a5b150df0025708a0ceea8fc83e844acb681e12975b4b0e77fb31/meshcut-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "088fd1f376b56dfa91d0ce3168322db1", "sha256": "27e65b5a8932b63cc5c71f464074cb95baef08c099fdb1eeaa2e9a29f614b2d0" }, "downloads": -1, "filename": "meshcut-0.2.1.tar.gz", "has_sig": false, "md5_digest": "088fd1f376b56dfa91d0ce3168322db1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5821, "upload_time": "2018-10-18T08:43:00", "url": "https://files.pythonhosted.org/packages/33/8f/be4fe4ebcd48bb32db6eb14823907078dcea2f48d8bca6998d18a6ff4800/meshcut-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34ec1dbbfd50b780a7097aa7440998b7", "sha256": "385fb835c9e2d3953fad49b635f6e89b419d5ed661e76ba52ba3fd339c2d055e" }, "downloads": -1, "filename": "meshcut-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "34ec1dbbfd50b780a7097aa7440998b7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6658, "upload_time": "2018-10-18T08:42:58", "url": "https://files.pythonhosted.org/packages/89/bd/8ad35e6a5b150df0025708a0ceea8fc83e844acb681e12975b4b0e77fb31/meshcut-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "088fd1f376b56dfa91d0ce3168322db1", "sha256": "27e65b5a8932b63cc5c71f464074cb95baef08c099fdb1eeaa2e9a29f614b2d0" }, "downloads": -1, "filename": "meshcut-0.2.1.tar.gz", "has_sig": false, "md5_digest": "088fd1f376b56dfa91d0ce3168322db1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5821, "upload_time": "2018-10-18T08:43:00", "url": "https://files.pythonhosted.org/packages/33/8f/be4fe4ebcd48bb32db6eb14823907078dcea2f48d8bca6998d18a6ff4800/meshcut-0.2.1.tar.gz" } ] }