Skip to content

jonghough/Voronoi-jx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voronoi-jx

Generate Voronoi Diagrams in .NET / WPF

Application

This is a library and application for drawing voronoi diagrams, using an implementation of Fortune's Algorithm, written in C#. The application is a simple, single-window WPF application. The actual library should be easily extractable from the application to drop into any other application. The actual logic of the library was mostly copied from my Java app: JavaGraph

Purpose

Just a demonstration application and library.

Dependencies

To generate the diagrams the C5 library's priority queue implementation was used. c5

Features

  1. Draw simple diagrams with mouse click
  2. Change background color
  3. Change line color
  4. Change vertex color
  5. Draw Delaunay Edges (edges between all adjacent regions in the voronoi diagram)
  6. Save canvas as image

Samples

voronoi diagram and corresponding delaunay edges

voronoi1

simple voronoi diagram

voronoi2

lots of points!

voronoi3

a little more complex

voronoi4

Releases

No releases published

Packages

No packages published

Languages