Skip to main content

EmeraldTriangles

This library provides transformations for 2d triangle meshes built on top of scipy.spatial.Delaunay and Triangle:

  • Insert points (nodes) in an existing mesh, splitting any triangles that points fall into.
    • Meshes created this way might not be Delaunay, but any new connected set of triangles added will be Delaunay if viewed in isolation (without the pre-existing mesh).
  • Extend a mesh outwards to include new points.
    • The extension to the mesh will be a constrained delaunay.
  • Calculate the boundary polygon of a mesh.

This library uses a similar data structure to the Triangles library above, but replaces numpy arrays with pandas dataframes, preserving any extra columns across operations. It also contains a plotting function similar to the one in the Triangle library, that supports color attributes for vertices as well as triangle faces.

In addition, EmeraldTriangles provides import and export functionality for

  • LandXML (import and export, no extra columns)
  • SQL (import and export, same supported databases as pandas)
  • PyVista (Only export)
    • VTK (only export)

as well as some data transforms

  • Reprojection of coordinates using pyproj
  • Spatial interpolation (Kriging) of data using scikit-gstat
  • Sampling of data from a raster to triangulation vertices using RasterIO
  • Sampling of data from a triangulation to new point locations (linear interpolation between vertices of the surrounding triangle)

Documentation

Documentation is provided in the form of a jupyter notebook with example usages as well as in docstrings accesible with the python help() function.

Installation tips

Users have experience issues with using the setup.py develop option due to some strange behaviour from cython. Using pip instead seems to do this trick.

Metadata

Release files for emeraldtriangles 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emeraldtriangles 0.1.11
File Size Uploaded Provenance
emeraldtriangles-0.1.11.tar.gz 153.6 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for emeraldtriangles 0.1.11
File Interpreter ABI Platform
emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl CPython 3.12 CPython 3.12 macOS 26.0+ ARM64 Details
emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl CPython 3.12 CPython 3.12 macOS 12.0+ ARM64 Details

Total release size: 575.4 kB

Release files / emeraldtriangles-0.1.11.tar.gz

Download URL emeraldtriangles-0.1.11.tar.gz
Size 153.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0ddd8d86b2787f12dbd95fcde96125a976739223b0d37b44dd81341e9e02db33
BLAKE2b-256 checksum
How to use checksums
9230caa254cb23d6665e8c12bf26d3ed3204affd7dff81bd294254b7d4d76df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl

Download URL emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl
Size 210.9 kB
Tags CPython 3.12 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
c346ff12c85dd074d5c1a96a9db35af225ce4d31b9e0e410ee58ac4304caa998
BLAKE2b-256 checksum
How to use checksums
b488124873ff788b08909d0acbb89dde35431caa7977e4fdad8e7357750d40d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl

Download URL emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl
Size 210.9 kB
Tags CPython 3.12 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
735fcca00e371c582b8a369b4f44787091d5b0d07c1c16e0fdf79e00ea2a7ecd
BLAKE2b-256 checksum
How to use checksums
4be41c29dc52b85d63e39334fef2a0d0cf411c8fcb27329d31483a330ebd89e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for emeraldtriangles 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.11 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page