Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / [dbpro]Voronoi diagram generator (3 lines)

Author
Message
Lewis999
13
Years of Service
User Offline
Joined: 23rd Oct 2010
Location:
Posted: 5th May 2012 00:51 Edited at: 9th May 2012 17:27
A simple(but slow) algorithm for generating Voronoi diagrams. It wasn't exactly a challenge to get it in 3 lines, but I thought I'd post anyway ^^


uncompressed:

edit: I just re-read the rules and realized this probably comes under the category of "pointless," oh well ^^
edit2: some small optimizations

another edit
http://en.wikipedia.org/wiki/Voronoi_diagram
noobnerd
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 9th May 2012 12:29
whats a voronoi diagram? you might have wanted to put that in the description

but cool.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th May 2012 04:18
Not much editing to make it work in DBC:


WARNING: The above comment may contain sarcasm.

Login to post a reply

Server time is: 2024-03-28 20:52:14
Your offset time is: 2024-03-28 20:52:14