Commit Graph

12 Commits

Author SHA1 Message Date
Matthias Richter
c681391033 Fix triangulation. Use class-commons. Add hash:draw()
Polygon triangulation bug:
In some cases Kongs triangulation algorithm produces triangles
with collinear points. The Polygon constructor removes one of
these and throws an error because there are not enough vertices.
Checking if the current points in a triangulation step are
collinear and discarding those triangles fixes the problem.

Class-commons lets you use any supporting class system as
backend for HC.

Add SpatialHash:draw() for debug purposes.
2012-01-22 00:09:54 +01:00
Matthias Richter
956df262d5 Avoid using module(). Make main module a class. 2011-11-13 14:15:46 +01:00
Matthias Richter
68af2448fd Fix typo 2011-02-26 21:39:24 +01:00
Matthias Richter
4e6d4be0e9 rawset! 2011-02-26 18:57:21 +01:00
Matthias Richter
787c980fdd Add point shape 2011-02-26 17:27:04 +01:00
Matthias Richter
36fb13a69a SpatialHash to return set instead of array 2011-02-10 14:36:10 +01:00
Matthias Richter
2b83c9f93f More profiling based optimisation 2011-02-07 19:03:19 +01:00
Matthias Richter
4554742579 Hide submodules. 2011-02-06 15:03:21 +01:00
Matthias Richter
ec10437644 Performance tweaks 2011-02-02 21:04:00 +01:00
Matthias Richter
f28685bc16 Make proper lua modules 2011-01-18 18:55:51 +01:00
Matthias Richter
7a67c3f924 Fix errors in spatial hash coordinates 2011-01-13 16:15:35 +01:00
Matthias Richter
3ad0242195 Initial commit 2011-01-13 14:38:36 +01:00