
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
libigl
Advanced tools
This repository contains the source code for the python bindings for the C++ libigl library written using nanobind. Functions allow NumPy arrays as input and output for dense matrices and vectors and SciPy sparse matrices for sparse matrices.
python -m pip install libigl
| :warning: WARNING |
|---|
| The python-binding documentation is perennially out of date and will likely be removed/changed. |
Since version 2.5.4.dev0, the igl.__version__ attribute has been removed. To
get the version of the libigl package you're using within your python code, you
can use the following code:
import importlib.metadata
libigl_version = importlib.metadata.version('libigl')
The version of libigl is defined in the pyproject.toml file.
According to the scikit-build-core documentation, the way to make an editable (incremental) build is to:
CMAKE_BUILD_PARALLEL_LEVEL=10 python -m pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve.
The CMAKE_BUILD_PARALLEL_LEVEL=10 will invoke with 10 parallel build threads.
Bindings are fairly mechanical to write. For example, suppose we didn't have a
binding for the c++ function igl::moments. The first step would be to look at
the corresponding .h header file in the C++ libigl library:
moments.h.
Then we would create the src/moments.cpp file in this project
which uses Eigen::MatrixXN for numeric types and Eigen::MatrixXI for integer
types. Typically this requires a simple wrapper around the function matching
its signature to these types and some boilerplate void bind_moments(... code which adds the function to the python module.
Simply adding this .cpp file will be enough to add the bindings on the next
build.
If submitting a pull request with a new binding, please also add an execution
test in tests/test_all.py to ensure the binding can at least be called as
expected.
Install whichever version of Python from the official website and then run:
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m venv venv-official-3.11
source venv-official-3.11/bin/activate
python -m pip install cibuildwheel
CIBW_BUILD="cp311-*" python -m cibuildwheel --output-dir wheelhouse --platform macos
A successful .github/workflows/wheels.yml run will a lot of .whl files. To download these all at once, you can use the following command:
mkdir wheelhouse
cd wheelhouse
gh run download [runid]
Then these can be uploaded to pypi using:
python -m twine upload --repository testpypi wheelhouse/*/*.whl wheelhouse/*/*.tar.gz
The original python bindings were generated and maintained by @teseoch, @KarlLeell, @fwilliams, @skoch9, and @danielepanozzo
The modern python bindings (since 2.5.4.dev0) can largely be blamed on @alecjacobson.
FAQs
libigl: A simple C++ geometry processing library
We found that libigl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.