Skip to main content

Opinionated COMPAS compatible bindings for top-level algorithms of libigl.

Project description

compas_libigl

COMPAS-compatible bindings for top-level algorithms of libigl generated with Pybind. Many of the functions provided by compas_libigl are based on the examples in the libigl tutorial.

Installation

compas_libigl can be installed using a combination of conda and pip.

conda create -n igl python=3.7 git cmake">=3.14" boost eigen=3.3 COMPAS compas_view2 --yes
conda activate igl
git clone --recursive https://github.com/BlockResearchGroup/compas_libigl.git
cd compas_libigl
rm -rf build
pip install -e .

If you have git/cmake installed, this can be omitted from the environment installation. On Mac, don't forget to install python.app!

Libigl functions

Currently the following functionalities of Libigl are included in the wrapper

  • Geodesic distance calculation
  • Scalarfield isolines
  • Quad mesh planarization
  • Mass matrix of triangle meshes
  • Discrete gaussian curvature
  • Ray/mesh intersection
  • Boundary loops
  • Harmonic parametrisation
  • Least-squares conformal maps

Examples

The use of the wrapped functions is illustrated with scripts in the examples folder. Note that the functionality of the package is not directly available in Rhino, but can be used through compas.rpc.

License

Libigl (and therefore also compas_libigl) is licensed under MPL-2.

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

compas_libigl-0.3.1.tar.gz (19.5 kB view details)

Uploaded Source

File details

Details for the file compas_libigl-0.3.1.tar.gz.

File metadata

  • Download URL: compas_libigl-0.3.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for compas_libigl-0.3.1.tar.gz
Algorithm Hash digest
SHA256 00fded22724e5544ff4c9194c8d1d1e1607c5ba0cb734bb57e83435056758da7
MD5 d3d0835bb9957b41956b1b45f2c2f02f
BLAKE2b-256 dd23adbde9ccfaced99e915582a5e8844a517e631f95ad3194f4e2b1dd082c5e

See more details on using hashes here.

Supported by

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