Commit Graph

65 Commits

Author SHA1 Message Date
Jan Niklas Hasse 81612cb108
Merge pull request #43 from AndriyAndreyev/stability_fixes
Stability fixes
2022-05-20 15:46:44 +02:00
Pierre Dejoue 505f63d85c Pragma once and for all 2022-05-08 19:26:22 +02:00
AndriyAndreyev afee3269fa Merge remote-tracking branch 'upstream/master' 2022-05-06 00:50:55 +03:00
AndriyAndreyev 64636de5af Сonsider that LargeHole_DontFill is true if angle is negative
Otherwise, a wrong triangle can be generated

Signed-off-by: AndriyAndreyev <andriy.a.andreyev@gmail.com>
2022-04-26 21:46:10 +03:00
Pierre Dejoue 7f5846b72d Retakes on dllexport/dllimport 2022-04-20 21:52:16 +02:00
Clifford Yapp ad184c3810 Add dllexport/dllimport definitions. 2022-04-17 13:41:01 +02:00
Jan Niklas Hasse 3380f5c805 Apply even more clang-tidy fixes 2022-03-25 10:49:45 +01:00
Jan Niklas Hasse dcdb7442a4 Apply several clang-tidy fixes 2022-03-25 09:56:30 +01:00
Piotr Kania 905a765c0f Additional sanity checks for triangulate operation 2021-04-29 11:51:05 +02:00
Piotr Kania af36bac4db Check pointer before dereferencing it 2021-04-26 10:25:12 +02:00
Jan Niklas Hasse d949f3cd6f Add namespace comment 2021-01-16 18:43:00 +01:00
Pierre Dejoue 718d687bae Add references section to README
The flipscan picture by Thomas Ahlen was found on those pages:
https://blackflux.wordpress.com/2014/03/01/meshing-in-voxel-engines-part-2/
https://groups.google.com/g/poly2tri/c/LNfxMtVyhqs
2020-10-26 20:58:49 +01:00
Pierre Dejoue 1054475eeb Triangle::NeighborAcross to return a pointer
Same as Triangle::NeighborCW and Triangle::NeighborCCW
2020-10-26 20:58:23 +01:00
Pierre Dejoue 35b2fa916a Patch inversion of head and tail in the advancing front initialization
No functional impact, the code is equivalent. We just assign
head_ to af_head_ and tail_ to af_tail_ as one would expect.
2020-10-26 12:07:45 +01:00
Jan Niklas Hasse a3a6456586 Add namespace comment for clang-tidy 2020-10-19 18:27:21 +02:00
Pierre Dejoue 06b0f14b29 Actually throw exceptions 2020-08-06 19:36:50 +02:00
Pierre Dejoue 7f8c4c5e4c Rename local index for readability 2020-08-06 19:36:50 +02:00
Jan Niklas Hasse 6c184d10b4 Use nullptr instead of NULL or 0 2020-06-14 20:14:58 +02:00
Jan Niklas Hasse 9c8b47486d Update project URL and copyright year 2018-09-11 12:53:31 +02:00
Jan Niklas Hasse 66ff955252 Remove unused parameter from CreateAdvancingFront, fix #3 2018-04-13 19:29:10 +02:00
Jan Niklas Hasse f0a16419c5 Throw an exception instead of assert(false) for repeat points 2018-02-28 17:34:54 +01:00
Jan Niklas Hasse f52c0c1c0d Remove unnecessary NULL check 2015-01-27 02:04:39 +01:00
Giemsa d84fb6f6d5 fix some problems 2014-01-22 11:01:45 +09:00
Giemsa b5abae7c15 modify definitions(for more high performance and safety) 2014-01-21 21:38:22 +09:00
Mason Green 91d1203c3a fixed SweepContext ctor 2013-05-23 20:08:46 +02:00
Mason Green d5b79b043b fixed SweepContext::MeshClean 2013-05-23 19:59:51 +02:00
Jan Niklas Hasse 47a9c6e038 remove trailing whitespace and convert to unix line endings 2012-09-05 18:41:47 +02:00
Jan Niklas Hasse 58793eda10 remove unnecessary ctors and use initializer list 2012-08-27 19:24:14 +02:00
Jan Niklas Hasse 34ff2c0ec3 Merge branch 'master' of github.com:jhasse/poly2tri 2012-08-21 17:15:06 +02:00
Jan Niklas Hasse 293108fcdb fix compiler warning (also pass by value since it's faster for PODs) 2012-08-21 15:05:48 +02:00
Jan Niklas Hasse 163e504e21 fix compiler warning and remove trailing whitespace 2012-08-18 17:41:03 +02:00
Jan Niklas Hasse f4f6ab5ab1 fix compiler warnings about size_t to int conversion 2012-08-17 23:23:36 +02:00
Jan Niklas Hasse 544aec554c fixed compiler warnings 2012-07-12 19:56:59 +02:00
Mason Green 6f70496b5d better decision-making about when to Fill hole 2012-04-07 10:43:27 -04:00
Mason Green 18b147311d fixed NULL 2011-08-08 22:26:41 -04:00
Mason Green 56510a42f7 fixed a few gcc warnings 2011-06-04 14:57:00 -04:00
zzzzrrr b5c5cbd82f updated comments 2011-03-08 11:06:09 -05:00
zzzzrrr 9f1a0dff10 Fixed a bug in DTSweep that might remove one or two valid triangles fromPointSet triangulations. 2011-03-08 10:35:37 -05:00
zzzzrrr d6dd5da27c memory cleanup 2010-04-25 12:40:54 -04:00
zzzzrrr bab616f9ea general cleanup 2010-04-23 13:11:13 -04:00
zzzzrrr 4ca5a5c8ca created vector for nodes 2010-04-23 12:34:55 -04:00
zzzzrrr 1bdb0893cd fixed none memory leaks... 2010-04-23 12:27:00 -04:00
zzzzrrr 8b0b7e3c79 C++ is a pain in the ass 2010-04-23 12:07:40 -04:00
zzzzrrr c0836af607 found another one :) 2010-04-23 12:00:45 -04:00
zzzzrrr 75f8496e22 fixed more memory leaks 2010-04-23 11:51:22 -04:00
zzzzrrr 15db727895 delete nodes from memory 2010-04-23 10:44:20 -04:00
zzzzrrr fe67bffee8 delete point event node from memory 2010-04-23 09:51:33 -04:00
zzzzrrr a8963b0bb0 made destructor public 2010-02-10 07:29:05 -05:00
zzzzrrr cd95b14d0a removed bad import; updated README 2010-02-10 07:14:38 -05:00
zzzzrrr 759bc5fe89 added include guards 2010-02-07 18:00:21 -05:00