Skip to main content

Work with polygonal meshes which have vertex-wise correspondence

Project description

entente

version python version license coverage build docs build code style

Library for working with lacecore-style polygonal meshes which have vertex-wise correspondence.

Features

  • Create a composite.
  • Transfer landmarks from the surface of one mesh to the surface of another.
  • Shuffle vertices.
  • Restore correspondence of vertices.
  • Spatial search, lightly wrapping [trimesh][].
  • Complete documentation: https://entente.readthedocs.io/en/stable/

Installation

To use the landmark compositor, first install libspatialindex:

brew install spatialindex
apt-get install libspatialindex-dev

Then run pip install entente[landmarker] which installs proximity.

Usage

python -m entente.cli transfer_landmarks source.obj source.pp target1.obj target2.obj ...
base_mesh: examples/average.obj
landmarks:
  - knee_left
  - knee_right
examples:
  - id: example01
    mesh: examples/example01.obj
    knee_left: [-10.0, 15.0, 4.0]
    knee_right: [10.0, 14.8, 4.1]
  - id: example02
    mesh: examples/example02.obj
    knee_left: [-11.0, 13.0, 3.5]
    knee_right: [12.0, 12.8, 3.4]
python -m entente.cli composite_landmarks recipe.yml

Development

Updating the Docker build for CircleCI

  1. Make sure Docker is installed and running.
  2. Build and push the images:
./dev.py docker-build 0.2.0  # Use the next available minor release.
./dev.py docker-push 0.2.0
  1. Update the image: references in .circleci/config.yml.

Contribute

Pull requests welcome!

Support

If you are having issues, please let me know.

License

The project is licensed under the MIT license.

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

entente-1.0.0b0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

entente-1.0.0b0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file entente-1.0.0b0.tar.gz.

File metadata

  • Download URL: entente-1.0.0b0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5

File hashes

Hashes for entente-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 0aeeb094f9fd0eb6587786dd8fa141efdd5d73874b9d95b2921f7762e950503e
MD5 ad6d12606a3360a10b08e79e1fd50e89
BLAKE2b-256 eec5119597c4183b62e3437e7726719ef070e0d60c1de078e04fda51e2107bc1

See more details on using hashes here.

Provenance

File details

Details for the file entente-1.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: entente-1.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5

File hashes

Hashes for entente-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 78981382f1fa4a1cd7d9255b5e54379ed713c19236256011d4e0cdb9e9fe7b67
MD5 86ae1d6730f156f57674d972331767fc
BLAKE2b-256 acdb5a7a389127c0789790f416c9d3d4000ae7d60411e4f7afbda247f491b018

See more details on using hashes here.

Provenance

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