aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* Add snapping module to replace the rigid grid snappingArne Dußin2020-12-31-18/+282
|
* Merge branch 'master' of github.com:LordSentox/graf_kartoArne Dußin2020-12-21-0/+0
|\
| * Merge pull request #24 from LordSentox/refactorArne Dußin2020-12-21-807/+1413
| |\ | | | | | | Refactor to make interaction between tools easier
* | | Add previously missing docs where appropriateArne Dußin2020-12-21-34/+410
| | |
* | | Add dimensional indicator with scalingArne Dußin2020-12-20-122/+254
| | |
* | | Add new dimension indicatorArne Dußin2020-12-16-175/+98
| |/ |/|
* | Add constant for default colours and selection toolArne Dußin2020-12-16-97/+297
| |
* | Refactor to make interaction between tools easierArne Dußin2020-12-15-769/+1175
|/
* Add new concept for class structure in UMLArne Dußin2020-12-06-0/+175
|
* Merge branch 'master' of github.com:LordSentox/graf_kartoArne Dußin2020-11-29-0/+0
|\
| * Merge pull request #21 from LordSentox/wall-joinMax Pernklau2020-11-29-5/+31
| |\ | | | | | | Make walls join nicer in corners
* | \ Merge pull request #21 from LordSentox/wall-joinMax Pernklau2020-11-29-4/+30
|\ \ \ | |/ / |/| / | |/ Make walls join nicer in corners
| * Merge branch 'master' into wall-joinMax Pernklau2020-11-29-181/+169
| |\ | |/ |/|
* | Limit grid inaccuracy to half a pixelArne Dußin2020-11-28-18/+27
| | | | | | | | | | | | | | | | | | | | Before, the grid was calculated accumutatively, which was pretty alright. However, with some zoom levels towards the bottom of the screen there was a discrepancy between the grid and something drawn. This should be fixed now, since this update makes the grid use the same method of calculation for every grid cell that everything else uses to calculate points. Also, sub-pixel positions are rounded for the grid, while they were floored before, which should improve accuracy.
* | Change to f64 as the preferred floating point numberArne Dußin2020-11-27-180/+159
| |
| * Make walls join nicer in cornersArne Dußin2020-11-27-4/+30
|/
* Merge branch 'polygon-deletion'Arne Dußin2020-11-26-21/+83
|\
| * Make polygons deletableArne Dußin2020-11-26-21/+83
| | | | | | | | | | | | Before, the deletion tool was not targeting polygons. I also took the liberty to broaden the functionality of the surface trait, which now can check if a rectangle or polygon is contained.
* | Print polygon that makes the earcutting algo panicArne Dußin2020-11-26-4/+7
|/
* Change prints to logs where necessaryArne Dußin2020-11-25-9/+11
| | | | | There were quite a few places, where I hardcoded a print in. Most of these should use the logger instead, so I fixed it.
* Fix clippy lints and add polygon tool button iconArne Dußin2020-11-25-4/+3
|
* Add polygon rooms that can actually kind of be usedArne Dußin2020-11-25-69/+293
| | | | | | It's still kind of strange to use the polygon tool, but at least it seems stable enough so I'm confident enough (and sick enough of it) to release it into the wild.
* Add unstable polygon room toolArne Dußin2020-11-24-8/+69
|
* Fix polygon corners not always running counterclockwiseArne Dußin2020-11-24-14/+101
|
* Merge branch 'triangulation' into polygon-roomsArne Dußin2020-11-23-345/+830
|\
| * Add triangulation functionArne Dußin2020-11-23-12/+49
| |
| * Fix corner case not being handledArne Dußin2020-11-23-2/+97
| | | | | | | | | | | | | | | | Previously, the algorithm to check, if a line-segment is inside a polygon did not have a special case for when the start or end of the segment is on a polygon corner. In case this corner is reflexive, checking against one line between this corner and an adjacent one may not be enough.
| * Add ear clipping algorithmArne Dußin2020-11-23-6/+201
| |
| * Move containment of points/ lines into traitArne Dußin2020-11-21-86/+105
| |
| * Move polygon functions into own modArne Dußin2020-11-21-9/+15
| | | | | | | | | | The math module was starting to be mostly polygon files and functions, so those got their own subfolder to make the math module less of a mess.
| * Apply clippy lintsArne Dußin2020-11-21-11/+5
| |
| * Add unit tests for triangleArne Dußin2020-11-21-0/+57
| |
| * Add triangle struct and triangulation templateArne Dußin2020-11-21-101/+183
| |
* | Add unfinished polygon room toolArne Dußin2020-11-20-2/+127
|/ | | | | | | When adding the polygon room tool, a problem with drawing polygons arised. Drawing a simple, but nonregular polygon is not something that is supported by raylib, so further additions to the math library are needed.
* Change to different GUI styleArne Dußin2020-11-20-0/+91
|
* Fix tools not workingArne Dußin2020-11-20-3/+5
| | | | | | | Since the tool sidebar was always setting the currently active tool and that meant even when no change occured, the tool was being deactivated and reactivated, nothing happened except for the icon tool. Now, it's checked if any change is necessary in the editor
* Remove unused importsArne Dußin2020-11-20-1/+0
|
* Add simple tool sidebar guiArne Dußin2020-11-20-30/+155
|
* Merge branch 'polygon'Arne Dußin2020-11-18-3/+976
|\
| * Implement bounding box functionArne Dußin2020-11-18-21/+138
| |
| * Add self intersection for polygon graphsArne Dußin2020-11-18-20/+142
| |
| * Fix silly bug in min functionArne Dußin2020-11-18-3/+25
| |
| * Add polygon graphArne Dußin2020-11-17-1/+369
| |
| * Add intersection point algorithmArne Dußin2020-11-15-116/+151
| |
| * Fix the polygon point containment algorithmArne Dußin2020-11-12-29/+83
| | | | | | | | | | | | | | | | The algorithm before was really not working for a lot of edge cases and very difficult to adapt. This version is definitely not the be-all and end-all, but it should work for most (well, hopefully all) cases. After refactoring and hopefully simplifying and straightening out the logic a little more, it should be verifiable.
| * Add polygon that can check if a point is insideArne Dußin2020-11-11-2/+257
| | | | | | | | | | ..except for one super super edgy edge case, but I wanted to get this algorithm out into a commit before I ruin it completely (probably)
* | Merge pull request #17 from LordSentox/fix-ghost-toolsMax Pernklau2020-11-16-0/+8
|\ \ | | | | | | Fix ghost tools
| * \ Merge branch 'fix-dim-markers' into fix-ghost-toolsArne Dußin2020-11-15-0/+10
| |\ \
| * | | Fix deletion and wall tool ghostsArne Dußin2020-11-15-0/+8
| | |/ | |/|
* | | Merge pull request #16 from LordSentox/fix-dim-markersArne Dußin2020-11-15-0/+10
|\ \ \ | |/ / |/| / | |/ Fix the dimension indicators persisting after add