Python_2  1.0
Functions | Variables
_13_VoronoiDemo Namespace Reference

Interactively draws a Delaunay triangulation and its dual Voronoi diagram. More...

Functions

def display ()
 
def reshape (wid, hgt)
 
def mouse (button, state, x, y)
 
def init ()
 
def main (argv=None)
 

Variables

int width = 512
 
int height = 512
 
list points = []
 
 triang = Delaunay_triangulation_2()
 

Detailed Description

Interactively draws a Delaunay triangulation and its dual Voronoi diagram.

Usage: just click points on the window with the left mouse button.

Author
Paulo Roma Cavalcanti
Since
07/03/2007

Function Documentation

◆ display()

def _13_VoronoiDemo.display ( )

◆ init()

def _13_VoronoiDemo.init ( )

◆ main()

def _13_VoronoiDemo.main (   argv = None)

◆ mouse()

def _13_VoronoiDemo.mouse (   button,
  state,
  x,
  y 
)

◆ reshape()

def _13_VoronoiDemo.reshape (   wid,
  hgt 
)

Variable Documentation

◆ height

int _13_VoronoiDemo.height = 512

◆ points

list _13_VoronoiDemo.points = []

◆ triang

_13_VoronoiDemo.triang = Delaunay_triangulation_2()

◆ width

int _13_VoronoiDemo.width = 512