Skip to main content

Construct triangulations of point configurations.

Project description

Triangulumancer

Build and test

This project provides tools to construct $n$-dimensional triangulations of point configurations. It uses CGAL's dD Triangulations package to construct Delaunay and regular triangulations with given heights/weights, and it uses TOPCOM to find pulling/pushing triangulations, to find the list of available bistellar flips, and to find the complete list of triangulations of a point configuration.

The functionality and documentation of this project are currently fairly limited. If there is enough interest, I will continue to expand on both functionality and documentation. Please open an issue to ask for more functionality, or even better, make a pull request!

Installation

Triangulumancer can be installed in most cases simply by running

pip install triangulumancer

If you want to tweak compilation parameters or anything else, you can clone the repository and build the wheel yourself.

git clone --recurse-submodules https://github.com/ariostas/triangulumancer.git
cd triangulumancer
pip install .
# You might need to set your LD_LIBRARY_PATH to include extern/topcom/external/lib.

Usage

Here is a basic example that shows the available functionality.

>>> from triangulumancer import PointConfiguration
>>>
>>> p = PointConfiguration(
...     [[0, 0], [1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0], [-1, -1], [0, -1], [1, -1]]
... )
>>> p
A 2-dimensional point configuration with 9 points
>>> t_delaunay = p.delaunay_triangulation()
>>> t_delaunay
A triangulation with 8 simplices of a point configuration with 9 points
>>> t_heights = p.triangulate_with_heights([1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> t_heights
A triangulation with 8 simplices of a point configuration with 9 points
>>> t_weights = p.triangulate_with_weights([1, 2, 3, 4, 5, 6, 7, 8, 9])
A triangulation with 5 simplices of a point configuration with 9 points
>>> t_placing = p.placing_triangulation()
A triangulation with 8 simplices of a point configuration with 9 points
>>> t_placing_neighbors = t_placing.neighbors()
>>> len(t_placing_neighbors)
6
>>> list_t_connected = p.all_connected_triangulations()
>>> len(list_t_connected)
>>> 387
>>> list_t_connected_fine = p.all_connected_triangulations(only_fine=True)
>>> len(list_t_connected_fine)
64
>>> list_t_all = p.all_triangulations()
>>> len(list_t_all)
387
>>> list_t_all_fine = p.all_triangulations(only_fine=True)
>>> len(list_t_all_fine)
64

License

All original triangulumancer code is distributed under the GNU General Public License version 3. The libraries it depends on, which can be found in the extern directory, are redistributed under their corresponding licenses.

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

triangulumancer-0.1.0.tar.gz (34.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

triangulumancer-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

triangulumancer-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

triangulumancer-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

triangulumancer-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

triangulumancer-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

triangulumancer-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

triangulumancer-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

triangulumancer-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

triangulumancer-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

triangulumancer-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

triangulumancer-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

triangulumancer-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

triangulumancer-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

triangulumancer-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

triangulumancer-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file triangulumancer-0.1.0.tar.gz.

File metadata

  • Download URL: triangulumancer-0.1.0.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for triangulumancer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4783ad1a44da84158d5209f00fbd7e73413e94c3890e17b26cef89560e113e1
MD5 df00e7d5c06ce260d957ee66517ed803
BLAKE2b-256 faf44b322c0781f1d921d57b3bf7a5bb241da27a13a5fa2de399b5ff41ccc833

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0.tar.gz:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 eba1f85db83072405310b256fcec5c8274a547a3aac274e196077b958c97a611
MD5 f5b97b8f0a6436e1d403f7fb5a8b4b18
BLAKE2b-256 5272cb79857a7a23281013c8630f5f176d9a4cb29547bb7e2a5a6439ca1efb03

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd59f1d6e5358fe36d6df88d1211f16ddaf51509da0d7f15632e029f821d0ff0
MD5 cc15c8074ed7d4af11dfb5e0062a1aca
BLAKE2b-256 cf8e1b701d38d567797fc26136c6704be3dd3157cd3cae4b36c60ce1e723afb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbfba9c2388542d6a129d87aedc9b301f22b06ffe5aa5a191388f63aab10072f
MD5 69508f48040730d08db1f8865d61c988
BLAKE2b-256 5b8f96c5b755f4d1700ae53f59e5b7c1eab9de6a279a1ab00e4bf5751a469a6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4bcd3baba2465fe895003ec9b4e224c70ab21e20cdba809a893aeb5878ce3d77
MD5 ee8f3de434e12c5cca384be60248dcf7
BLAKE2b-256 01b730675048bec42caf34c00cd143cada411a0bca650a9d5af98fbf152ef9df

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab04d3331b5df2557ac52d9a50510a2a6f489cd5d32855686f9919e193645224
MD5 4104c0521db9f8ed2091129cdbc7a420
BLAKE2b-256 f3948fb13fa8b916b0fad9ca8f8a894b751f24bb122dfe13ec0fc142a744913f

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cbc3feaff8f084d3de5ec161c5cc3336c333a8f2de5d82808d30121384571c0
MD5 b1901a4860122f00886484ec1a8e308a
BLAKE2b-256 76aa61d82bdfbd03af061f856b77c090fac101a7fb1f55fc5e3c7058b5afef2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 49a2f55a8e6ce6831e85680bb8a9cadb51bd7db555ff1059067babe24d5c7670
MD5 a2b1a5ace72e7921c7049b452a57eb6f
BLAKE2b-256 2b21e0771a228b42b5a39c8474c8856e447cef036f4b18070d8bb2b2a95d5e7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a16811583adaa1da63e63749c933256c5ca6743d7cfce3b33440c565c376eb00
MD5 5ed94d0a4dba70c89d5df4ae9309425e
BLAKE2b-256 b245e20338bf5a44f3f7b3ba0f34e7e2dac2b1763286cb843bd90267a2503b24

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0151c0efab8f5c62960b413445b5008d302938c7696598c25608a90f6b22b6e4
MD5 6660fa5fc13052945f0197f46caa12b3
BLAKE2b-256 e91e662482278f4a2cf08fb7924bd59efecdd4011181ba6cb955d58bd36c5168

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4288108933ec94548aec175c155a53a9a4fe7a05cd3498a3735bb966d3703f4f
MD5 ab473246f975bdc28bd96b55166c050e
BLAKE2b-256 4bc8a4abec29ee4c8cf55f7084a031d3fd4f6b869c6eccc8a9c1b2de63d98ba0

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2ca002a2c12d26f442880cd6a79de3655dfe98f7ae8725728e46a196f192074
MD5 6e6a3ea141efcd45e5e5402101373dc6
BLAKE2b-256 fb4f86fb88d34f424a669a82d9c3d9b357db5b9ebca884ff0f385d233c9498af

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d45c383554da5fc747c32310ec830dde81c9a3a60ee450b6880c321b7d626562
MD5 df87622c58a89d785aa634d77858442d
BLAKE2b-256 1bdf3990b2877fa5a855c5869bbbb6279e86c5385f7b11e8924bde6c5c6dc9b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fec2d7d2702443956e52c17b46fd944ed6a4ae855d1444f366f412ac91b0cac0
MD5 58cb1b21691c5aca1697fc077f976c65
BLAKE2b-256 617f0d21da6b0bfc1ea884b6062ec7a19fbcfff5af65f96c4677159520a8c8c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3330db43a091738e39d39797a799a1f33e15bdfcfe253792c974b779f8278b24
MD5 a0deca98d93e750bcb4c81094392e89d
BLAKE2b-256 e3f0e8f5a99eedce58cbe386495e6fedcf84f258374393e39e7a26d955561975

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triangulumancer-0.1.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for triangulumancer-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f42833f3d3ebc49869da90bcb5910fe6c66e21b42f577b99751884d8f6b4a7e8
MD5 4b79fa37a8e3526c6dca7ad16496c7b1
BLAKE2b-256 ba81d1b35966b25ad9ff10eca8e249ff1b3f0a14176442fa97fb8e5dde4d0992

See more details on using hashes here.

Provenance

The following attestation bundles were made for triangulumancer-0.1.0-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: deploy.yml on ariostas/triangulumancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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