Skip to main content

Python bindings for ADMesh, STL maipulation library

Project description

https://badge.fury.io/py/admesh.svg https://travis-ci.org/admesh/python-admesh.png?branch=master https://pypip.in/d/admesh/badge.png

This module provides bindings for the ADMesh library. It lets you manipulate 3D models in binary or ASCII STL format and partially repair them if necessary.

Installation

First, you’ll need to install the ADMesh library. This release is designed for ADMesh 0.98. Follow the instructions there. Also, you’ll need Cython. Then you can install this as usual with one of the following:

./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:

LDFLAGS='-L/path/to/library' CFLAGS='-I/path/to/header' ./setup.py install

Usage

Use the Stl class provided.

from admesh import Stl
stl = Stl('file.stl')
help(stl) # observe the available methods

Note that all ADMesh functions start with stl_ prefix and the methods do not. Also note that not all ADMesh functions are provided, because some would require more complicated approach and are not considered worthy. In case you are missing some functions, create a new issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

admesh-0.98.2.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file admesh-0.98.2.tar.gz.

File metadata

  • Download URL: admesh-0.98.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for admesh-0.98.2.tar.gz
Algorithm Hash digest
SHA256 7544bf71f4b68633a7f7e08638dcb254b9d75a8b884f7db2b47265dfca005707
MD5 d7276e71d8ccda8a05f6907c838028e8
BLAKE2b-256 8759a1d7fede44ef52c4688a24f1b3d3a059f6816a4b1549577f7f00e5fd727c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page