Skip to main content

Pure Python tessellation of points into polygons, including Delauney/Thiessin, and Voronoi polygons.

Project description

Pure Python tessellation of points into polygons, including Delauney/Thiessin, and Voronoi polygons. Built as a convenient user interface for Bill Simons/Carson Farmer python port of Steven Fortune C++ version of a Delauney triangulator.

Platforms

Tested on Python version 2.x.

Dependencies

Pure Python, no dependencies.

Installing it

Pytess is installed with pip from the commandline:

pip install pytess

Usage

To triangulate a set of points, simply do:

import pytess
points = [(1,1), (5,5), (3,5), (8,1)]
triangles = pytess.triangulate(points)

And for voronoi diagrams:

import pytess
points = [(1,1), (5,5), (3,5), (8,1)]
voronoipolys = pytess.voronoi(points)

More Information:

License:

This code is free to share, use, reuse, and modify according to the MIT license, see license.txt

Credits:

I just made it more convenient to use for end-users and uploaded it to PyPi. The real credit goes to Bill Simons/Carson Farmer and Steven Fortune for implementing the algorithm in the first place.

Karim Bahgat (2015)

CHANGES

0.1.0 (2015-06-25)

  • First pypi release

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

Pytess-0.1.0.zip (14.8 kB view details)

Uploaded Source

File details

Details for the file Pytess-0.1.0.zip.

File metadata

  • Download URL: Pytess-0.1.0.zip
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pytess-0.1.0.zip
Algorithm Hash digest
SHA256 06c474c9d6beae55130cde8001e9a8ce4c29edaad7f70957eb97271c41cad7ed
MD5 fb4efec24b0091e170b598e446f8be1a
BLAKE2b-256 e90d44de3a50a4871f74e441bf91a57383a99b6b3f999d33580ae2b8357fbfbb

See more details on using hashes here.

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