Commit Graph

338 Commits

Author SHA1 Message Date
d81b6b1cec
POLYINT: improve haddock doc 2014-10-26 14:58:43 +01:00
d56d22036c
QEX: rm unused function 2014-10-26 04:29:49 +01:00
c8914c8272
POLYINT: small refactor
Get predecessors and successors in the beginning instead of
figuring them out for every single point separetely.
This is still O(n), butt should be a lot quicker than the previous
approach.
2014-10-26 04:22:05 +01:00
90eaa45289
DIAGRAM: trim text coordinates to 2 decimal places 2014-10-26 00:19:58 +02:00
55e2ddd500
DIAGRAM: small refactor
Update Diag type to play more nicely with GifDiags.
2014-10-25 23:54:07 +02:00
fd931db7e0
Improve readability 2014-10-25 20:39:34 +02:00
c4c397e12f
POLYINT: small refactor, abstract some stuff out 2014-10-25 20:23:34 +02:00
b67ef899c7
DIAGRAM: rm obsolete maybeDiag calls
We handle these conditions inside the functions themselves
by checking the DiagProp.
2014-10-25 15:44:59 +02:00
b85afda7e7
DIAGRAM: small refactor
Enhanced the Diag type and used it for poly functions as well.
2014-10-25 15:40:10 +02:00
70b4fa6e01
VEC: fix haddock doc 2014-10-25 14:50:09 +02:00
4a4d49200a
VEC: rm unused function 2014-10-25 14:49:59 +02:00
c4ab68c76d
DIAGRAM: draw all points 2014-10-25 14:49:36 +02:00
ddff8b1fb2
Allow drawing the polygon stuff via GUI 2014-10-25 03:15:38 +02:00
7965443aa6
Fix example mesh 2014-10-25 03:15:00 +02:00
9a101d68a5
POLYINT: first try of polygon intersection algorithm in O(n) 2014-10-25 01:44:13 +02:00
a2e1e04072
Update README 2014-10-17 14:44:42 +02:00
ac37fcdf03
TRAVIS: build gtk and glade first 2014-10-17 14:44:31 +02:00
4fb9d6789a
TRAVIS: build gtk2hs-buildtools first 2014-10-17 14:26:56 +02:00
778dc16a3f
GUI: use infix instead of ap 2014-10-17 14:04:37 +02:00
2b95f8d7e0
Update README 2014-10-17 02:21:21 +02:00
ec51de3210
Update README 2014-10-17 02:10:22 +02:00
7df088be64
Add empty README 2014-10-17 02:06:22 +02:00
8272438a45
TRAVIS: add file 2014-10-17 02:04:52 +02:00
acf94f65cf
Rm obsolete test files 2014-10-17 01:29:59 +02:00
2baeea4d4b
GUI: make the MkMyGUI call less ugly 2014-10-17 01:06:24 +02:00
a31e1ff578
ALGO: improve haddock doc 2014-10-15 22:50:56 +02:00
dc137d55de
Update project name 2014-10-15 22:50:39 +02:00
42dc0c4a1b
DIAGRAM: use (<>) instead of mappend 2014-10-14 21:24:21 +02:00
hasufell
0379463db4 DIAGRAM: fix drawing for negative coordinates
Applying the filter function too late seemed to cause
glitches in convexHStepsLs for negative coordinates.
We should only pass the filtered list of points to
the graham scan.
2014-10-14 10:56:06 +02:00
873af1cfec
Add another test file 2014-10-13 23:01:37 +02:00
9751f0f7d6
Add a simple performance test with a big obj file 2014-10-13 22:35:01 +02:00
9dcf1e30f9
PRELUDE: add if' function to simplify if-then-else 2014-10-13 22:30:57 +02:00
077d0442f5
ALGO: improve style 2014-10-13 22:30:19 +02:00
8300929fd7
ALGO: refactor
Move sortedXY to Vector.hs, fix shadowing of scanH.
Simplified grahamCHSteps by making use of a more generalized scanH
function.
2014-10-13 22:06:12 +02:00
09eeaeda27
Refactor function names, split out some functions 2014-10-13 20:14:50 +02:00
d87dc25d26
DIAG: fix white rectangle border
For bigger dimensions 10 is not enough, so take 10 as percentage.
2014-10-13 19:58:09 +02:00
7a7bfaa1be
Improve style 2014-10-13 19:53:33 +02:00
edde93ec77
ALGO: improve function names 2014-10-13 19:50:02 +02:00
7cdb867cf4
ALGO: Split scanH out and make the graham API more modular 2014-10-13 19:49:53 +02:00
67ef9fa223
VEC: fix "defaulting... constraint to type Integer" warning 2014-10-13 19:15:09 +02:00
0dff1174f2
VEC: style 2014-10-13 19:14:25 +02:00
hasufell
2c1d5fa5ec Improve redability, add docs 2014-10-13 03:25:22 +02:00
87393af71a
Make Gif animation more nice, TODO: IMPROVE CODE 2014-10-13 02:58:18 +02:00
4936023c14
VEC: fix orientation, it was swapped 2014-10-13 02:30:11 +02:00
f82c948055
ALGO: Improve readability by introducing notcw 2014-10-12 20:37:24 +02:00
be2787103a
GUI: don't show error dialogs if there hasn't been any file chosen 2014-10-12 20:00:42 +02:00
56ea542535
ALGO: fix generation of gif
This is a good guess... the maximum of possible steps shouldn't
be higher than twice the length of the points.
2014-10-12 19:22:37 +02:00
37b38115ae
ALGO: fix algorithm to show collinear points as part of the hull
There was also a bug to be fixed when doing this. We missed
an important pattern match case which casued wrong results.
2014-10-12 19:19:44 +02:00
bfcc9bfdf7
ALGO: improve redability and style, add pseudo code
We also slightly changed the behavior of the algorithm and
now split it at 3 elements. It doesn't matter complexity wise
and improves readability a bit.
2014-10-12 18:44:48 +02:00
d3a7c04398
PRELUDE: simplify seqList 2014-10-12 16:09:17 +02:00