triangle
Python binding to the triangle library
Decision gist · record as of 2026-08-14
Yes, if you need reliable 2D Delaunay triangulation or quality mesh generation: triangle is a mature, well-tested binding to a standard library with no known vulnerabilities and straightforward installation. However, be aware the project is dormant—maintenance is minimal, so plan accordingly if you need active support or encounter bugs. The LGPL-3.0 copyleft license requires careful review if you intend to distribute derivative work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires numpy; Python >= 3.7.
- Medium install friction: precompiled wheels available across macOS, Linux, and Windows for multiple Python versions, but the package is dormant with no recent maintenance activity beyond the repository remaining open.
License · maintenance · safety
LGPL-3.0 (copyleft) — Licensed under LGPL-3.0 (copyleft): any derivative work or modification must be released under the same license, and linking in a proprietary application may require careful licensing review.
last release 2025-01-07 (584 days) · last repo commit 2025-01-07 · 264 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 511,074 downloads/mo, #6,262 on PyPI
Alternatives
Verify before relying
import numpy as np
import triangle
points = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])
A = dict(vertices=points)
B = triangle.triangulate(A, 'p')
print(B['triangles'])- Whether the wrapped triangle library version and its mesh quality guarantees are documented.
- Performance characteristics and scalability limits for large point sets or complex polygons.
- Active maintenance status: last commit is recent (2025-01-07) but maintenance is marked dormant.
What it is and what it does
Triangle is a Python binding to Jonathan Richard Shewchuk's widely-used C library for two-dimensional mesh generation and Delaunay triangulation. It wraps the C API using Cython to provide direct access to quality mesh refinement, constrained triangulation, and Delaunay computation from Python. The package accepts point sets and polygonal regions as input and produces triangulated meshes suitable for finite-element analysis, computational geometry, and spatial subdivision tasks.
The package depends only on numpy and is available as precompiled wheels across macOS, Linux, and Windows, making installation straightforward. However, the project is dormant—the last release was in January 2025 and there has been no active maintenance beyond repository preservation, so users should expect limited responsiveness to issues or feature requests.
Use it for
- Generate quality meshes for finite-element simulations by refining point sets and constraining boundaries.
- Compute Delaunay triangulations of scattered point data for spatial analysis and interpolation.
- Triangulate polygonal regions with holes for computational geometry and mesh-based algorithms.
- Subdivide planar domains into triangles for numerical methods and geometric processing.
- Create constrained Delaunay triangulations that respect user-specified edge and region constraints.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need reliable 2D Delaunay triangulation or quality mesh generation: triangle is a mature, well-tested binding to a standard library with no known vulnerabilities and straightforward installation.
However, be aware the project is dormant—maintenance is minimal, so plan accordingly if you need active support or encounter bugs. The LGPL-3.0 copyleft license requires careful review if you intend to distribute derivative work.
Install
triangle on PyPI
Before you install
Medium install friction: precompiled wheels available across macOS, Linux, and Windows for multiple Python versions, but the package is dormant with no recent maintenance activity beyond the repository remaining open.
Requires numpy; Python >= 3.7.
License in practice
Licensed under LGPL-3.0 (copyleft): any derivative work or modification must be released under the same license, and linking in a proprietary application may require careful licensing review.
Quickstart
import numpy as np
import triangle
points = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])
A = dict(vertices=points)
B = triangle.triangulate(A, 'p')
print(B['triangles'])
Verify before relying
- Whether the wrapped triangle library version and its mesh quality guarantees are documented.
- Performance characteristics and scalability limits for large point sets or complex polygons.
- Active maintenance status: last commit is recent (2025-01-07) but maintenance is marked dormant.
Package facts
| License | LGPL-3.0 copyleft |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Dormant 584 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 511,074 / month, #6,262 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: triangle-20250106-cp310-cp310-macosx_11_0_arm64.whl; triangle-20250106-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; triangle-20250106-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; triangle-20250106-cp310-cp310-win32.whl; triangle-20250106-cp310-cp310-win_amd64.whl; triangle-20250106-cp311-cp311-macosx_11_0_arm64.whl; triangle-20250106-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; triangle-20250106-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; triangle-20250106-cp311-cp311-win32.whl; triangle-20250106-cp311-cp311-win_amd64.whl; triangle-20250106-cp312-cp312-macosx_11_0_arm64.whl; triangle-20250106-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; triangle-20250106-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; triangle-20250106-cp312-cp312-win32.whl; triangle-20250106-cp312-cp312-win_amd64.whl; triangle-20250106-cp313-cp313-macosx_11_0_arm64.whl; triangle-20250106-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; triangle-20250106-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; triangle-20250106-cp313-cp313-win32.whl; triangle-20250106-cp313-cp313-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “delaunay triangulation python”
- triangleTriangle wraps Jonathan Richard Shewchuk's C library to generate…
- cytriangleCyTriangle wraps Jonathan Shewchuk's Triangle library via Cython to…
- cmeel-qhullProvides precompiled qhull binaries (convex hull, Delaunay…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also cytriangle · tetgen · mapbox-earcut · cmeel-qhull · trianglesolver · xatlas · pymeshlab · bermuda · manifold3d · pipablepytorch3d