Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.89 KB

README.md

File metadata and controls

65 lines (42 loc) · 1.89 KB

libigl Python Bindings

PyPI version buildwheels

This repository contains the source code for the libigl Python bindings. These bindings are fully compatible with NumPy and SciPy and offer a convenient interface similar to functions in those libraries.

These bindings are still under active development and should still be considered alpha quality. We encourage users to post issues so we can improve the bindings!

Installation

python -m pip install libigl

If you wish to install the current development code, you can compile the library from scratch. Clone this repo and issue

python -m pip install ./
  • A tutorial on how to use the bindings can be found here
  • A function reference can be found here

Compiling and modifying the bindiings

After installing numpy & scipy and then cloning this repository, you can compile the bindings from scratch by running:

python setup.py develop

or

python setup.py build --debug develop

for debug compilation. This command will make the package igl available for import in the current shell.

To run the tests:

python setup.py test

or

python tests/test_basic.py

and if developing and trying to run from this directory. You could use:

PYTHONPATH=. python tests/test_basic.py

License

Like libigl, the wrapper source code is licensed under MPL2. Code included via the copyleft and restricted sub-directories may have more restrictive licenses.