59 Commits

Author SHA1 Message Date
ade947d219 select curLine in next step, only drawing lines for resulting hull 2020-11-30 19:57:56 +01:00
0500981fdd fixed comment newline seperator 2020-11-30 19:56:48 +01:00
872cd6c452 added rng mode for diagonals 2020-11-30 18:25:18 +01:00
f65041c0ad fixed akl: order lines counterclockwise 2020-11-30 18:08:26 +01:00
40f6a6cb04 removed unbelievably ugly newline 2020-11-30 18:07:29 +01:00
2b299060f9 added Akl-Toussaint heuristic for vis (lil wonky atm but works) 2020-11-30 17:02:52 +01:00
5729315c09 setting fixed debug seed for debug mode 2020-11-30 17:02:04 +01:00
6bbdf004bd swapped fileRead or generation decision for better readability 2020-11-30 16:08:51 +01:00
c6ea56a0a4 moved mode dependent and file read number generation into NumberGenerator 2020-11-30 16:07:14 +01:00
0f0c2f8968 manual cast to remove warning 2020-11-30 16:06:30 +01:00
617ecaba91 fixed signed int for possible negative values 2020-11-30 16:06:16 +01:00
1c73b14f24 merged performance into main -> now used vor vis and perf mode; adding param akl for heuristic 2020-11-30 15:43:42 +01:00
bda1158e7f use already implemented line class functionality for best experience 👌 2020-11-30 00:39:15 +01:00
d1efc75f21 fixed cylces output and remove step 2020-11-30 00:23:21 +01:00
abcce8cbd4 giving up... just sorting calculated hullpoints clockwise before connecting with lines 2020-11-29 23:48:18 +01:00
a4acfdee3c alot of debugging, playing around and trying to get things to work 2020-11-29 23:32:54 +01:00
2b51a02f44 removed sorting 2020-11-29 23:32:20 +01:00
b094cf70b3 adapt input param notation 2020-11-29 23:32:11 +01:00
071ff11f0d including only limits... not full std c++ lib 2020-11-29 18:10:56 +01:00
2b2ed8cf06 removed Timing class for only one measure output 2020-11-29 18:10:31 +01:00
4e97501e1e finally kinda finished drawing algorithm 2020-11-29 14:51:55 +01:00
52213825de using line class, playing with convex shape element 2020-11-29 04:04:25 +01:00
2470e5a3af using const references 2020-11-29 04:04:02 +01:00
69b05cc335 commented not yet used functions -> remove if really not used 2020-11-29 03:16:29 +01:00
c3518c883f removed unused includes, minor refactoring 2020-11-29 03:16:06 +01:00
2d5920532b need cmath? 2020-11-29 03:15:22 +01:00
6056640ad4 replaced pragma once with classic defines to omit warnings in gcc 2020-11-29 03:13:39 +01:00
dce7bb581b added single timing output -> no need for whole Timing class 2020-11-29 03:12:50 +01:00
6654519d84 Change distance_to to distance_squared_to
more efficiency! (and we only need it for comparisons anyways)
2020-11-29 01:38:07 +01:00
c0bba8b264 Add temp workaround for rectangle
Getting both rectangle sides to work as intended is tricky. This works, but should be replaced with something better.
2020-11-29 01:27:59 +01:00
b9fd11ca0d Fix bug where distance would be too close to 0 to register
the furthest_distance now starts at -1 instead of 0 - if there's a point with a distance of 0, that's fine.

This caused issues in the circle previously.
2020-11-29 01:01:03 +01:00
1e9511a3ac Add basic visualization to performance mode 2020-11-29 00:25:18 +01:00
083ba53d67 Add NumberGenerator.h for different methods 2020-11-29 00:24:51 +01:00
535d912742 Likely performance improvement by limiting points
Instead of just deleting points in the triangle, we only check specific ones which are relevant
2020-11-28 23:58:17 +01:00
7dd46556c8 using liberationSans instead of arial 2020-11-28 23:30:31 +01:00
0d49399240 Merge branch 'main' of http://git.hexaquo.at/mgs/quickhull into main 2020-11-28 22:50:02 +01:00
a0b73b8018 replaced arial with open font LiberationSans 2020-11-28 22:50:01 +01:00
79111d184b Finish Quickhull functionality + basic test
The performance mode, which I'm working on, can now be tested with `make performance && ./performance`.

A very simple test was added, and it works!
2020-11-28 22:21:48 +01:00
acfb3a4500 More Quickhull implementation; add Triangle class 2020-11-28 21:11:32 +01:00
3cfa15a33c Merge branch 'main' of http://git.hexaquo.at/mgs/quickhull into main 2020-11-28 20:48:43 +01:00
d1d170f558 Some work on Quickhull
Also added basic arithmetic to Point, and a class for a Line
2020-11-28 20:47:52 +01:00
c64b2b01e5 calculate perpendicular distance to find furthest point from line 2020-11-27 03:48:34 +01:00
880d6252fa refactoring datastructures; 2020-11-27 03:09:50 +01:00
ea1461c1ae adding number generation modes for circle and rectangle 2020-11-27 03:08:37 +01:00
e78cf39d6d adding sign function for just float coordinates 2020-11-27 03:08:13 +01:00
9fcd2b2e9e adding math utility header 2020-11-26 22:19:14 +01:00
f3456f6c8d this was a shitload of code just for drawing one line xD 2020-11-26 22:17:36 +01:00
cb4d223780 Add outline for Quickhull algorithm
Mostly comments for now
2020-11-23 22:57:30 +01:00
548f0733ee Add Display to Makefile
Didn't compile without it (undefined reference in linker)
2020-11-19 15:39:30 +01:00
cde73ff4c1 added TODO list; drawing points 2020-11-19 09:46:02 +01:00