Skip to content

qhFang/libigl-python-bindings

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • C++ 63.2%
  • Jupyter Notebook 22.3%
  • Python 12.6%
  • CMake 1.8%
  • Other 0.1%