/usr/lib/python2.7/dist-packages/admesh-0.98.8.egg-info/PKG-INFO is in python-admesh 0.98.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | Metadata-Version: 1.1
Name: admesh
Version: 0.98.8
Summary: Python bindings for ADMesh, STL maipulation library
Home-page: https://github.com/admesh/python-admesh
Author: Miro HronĨok
Author-email: miro@hroncok.cz
License: GPLv2+
Description-Content-Type: UNKNOWN
Description: ADMesh bindings for Python
==========================
.. image:: https://img.shields.io/pypi/v/admesh.svg
:target: https://pypi.python.org/pypi/admesh
.. image:: https://img.shields.io/travis/admesh/python-admesh/master.svg
:target: https://travis-ci.org/admesh/python-admesh
.. image:: https://img.shields.io/github/license/admesh/python-admesh.svg?style=flat
:target: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
.. image:: https://img.shields.io/pypi/pyversions/admesh.svg
:target: https://pypi.python.org/pypi/admesh
.. image:: https://img.shields.io/pypi/implementation/admesh.svg
:target: https://pypi.python.org/pypi/admesh
This module provides bindings for the `ADMesh <https://github.com/admesh/admesh>`_ library. It lets you manipulate 3D models in binary or ASCII STL format and partially repair them if necessary.
Installation
------------
There are wheels available for Linux and macOS X. All you need to do is:
.. code:: sh
pip install admesh
If you have a platform not supported by the above,
you'll need to install the C `ADMesh <https://github.com/admesh/admesh>`_ library.
This release is designed for ADMesh 0.98.x. Follow the instructions there. Then you can install this as usual with **one** of the following:
.. code:: sh
./setup.py install
python3 setup.py install # for Python 3
pip install admesh # install directly from PyPI
In case your ADMesh library is located in non-standard location, you'll have to tell the compiler and linker where to look:
.. code:: sh
LDFLAGS='-L/path/to/library' CFLAGS='-I/path/to/header' ./setup.py install
Usage
-----
Use the ``Stl`` class provided.
.. code:: python
import admesh
# load an STL file
stl = admesh.Stl('file.stl')
# observe the available methods
help(stl)
# read the stats
stl.stats
# see how many facets are there
len(stl)
# walk the facets
for facet in stl:
# get the normal
facet['normal']
# walk the vertices
for vertex in facet['vertex']:
# read the coordinates
vertex['x']
vertex['y']
vertex['z']
# add another set of facets
# every facet is a tuple (vertices, normal) or a dict
stl.add_facets([
(((0, 0, 0), (0, 1, 0), (0, 0, 1)), (1, 0, 0)),
{'vertex': [{'x': 0, 'y': 0, 'z': 0},
{'x': 1, 'y': 0, 'z': 0},
{'x': 0, 'y': 0, 'z': 1}],
'normal': {'x': 0, 'y': 1, 'z': 0}},
])
Note that all C ADMesh functions start with ``stl_`` prefix and the Python methods of this module do not. Also note that not all C ADMesh functions are provided, because some would require more complicated approach and are not considered worthy. In case you are missing some functions, create `new issue <https://github.com/admesh/python-admesh/issues/new>`_.
Keywords: STL,mesh,3D
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
|