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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emeraldtriangles-0.1.11.tar.gz (153.6 kB view details)

Uploaded Source

Built Distributions

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

emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl (210.9 kB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl (210.9 kB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

File details

Details for the file emeraldtriangles-0.1.11.tar.gz.

File metadata

  • Download URL: emeraldtriangles-0.1.11.tar.gz
  • Upload date:
  • Size: 153.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for emeraldtriangles-0.1.11.tar.gz
Algorithm Hash digest
SHA256 0ddd8d86b2787f12dbd95fcde96125a976739223b0d37b44dd81341e9e02db33
MD5 d0a3a13a34b353fe728218daca4340dd
BLAKE2b-256 9230caa254cb23d6665e8c12bf26d3ed3204affd7dff81bd294254b7d4d76df0

See more details on using hashes here.

File details

Details for the file emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for emeraldtriangles-0.1.11-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 c346ff12c85dd074d5c1a96a9db35af225ce4d31b9e0e410ee58ac4304caa998
MD5 1caf8e67d1ea6121f60cac8f0ee49595
BLAKE2b-256 b488124873ff788b08909d0acbb89dde35431caa7977e4fdad8e7357750d40d1

See more details on using hashes here.

File details

Details for the file emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for emeraldtriangles-0.1.11-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 735fcca00e371c582b8a369b4f44787091d5b0d07c1c16e0fdf79e00ea2a7ecd
MD5 6206e196a26c70e66b4ca99904cdf3d9
BLAKE2b-256 4be41c29dc52b85d63e39334fef2a0d0cf411c8fcb27329d31483a330ebd89e0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.11 This release

3 files

0.1.10

1 file

0.1.9

1 file

0.1.7

2 files

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.31

1 file

0.0.29

1 file

0.0.28

1 file

0.0.27

1 file

0.0.26

1 file

0.0.25

1 file

0.0.24

1 file

0.0.23

1 file

0.0.22

1 file

0.0.21

1 file

0.0.20

1 file

0.0.19

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

0.0.14

1 file

0.0.12

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.6

1 file

0.0.5

1 file

0.0.3

1 file

0.0.2

1 file

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