2539 Commits

Author SHA1 Message Date
Vissarion Fisikopoulos
a58b5a59c2
Merge pull request #1251 from vissarion/fix/test_nan
Fixes compile error in tests and add removed tests for is_simple and is_valid
2024-02-28 13:31:05 +02:00
Barend Gehrels
682994c28a remove alternatives and add for convex hull 2024-02-28 11:17:55 +00:00
Barend Gehrels
aa508bf53a fix boost unit test framework in cmake and add cmake files 2024-02-28 11:17:55 +00:00
Barend Gehrels
1e54b3475f updated cmake files with review hints 2024-02-28 11:17:55 +00:00
Barend Gehrels
881ec1574f Add cmake files for clang/mac/darwin/arm64 2024-02-28 11:17:55 +00:00
Vissarion Fisikopoulos
bc03fb2305 Add removed tests for is_simple and is_valid with geometries whose coordinates are close to the maximum double 2024-02-28 13:12:55 +02:00
Vissarion Fisikopoulos
68c086110f
Merge pull request #1246 from barendgehrels/fix/compiler-errors-converter-base-of
fix compilation of converter and is_base_of
2024-02-26 11:52:10 +02:00
Vissarion Fisikopoulos
fe18b6cb67
Merge pull request #1237 from vissarion/fix/seg_intersection_on_same_point
Fix numerical issue for segments sharing a common point
2024-02-26 11:42:14 +02:00
Barend Gehrels
123c920b92 fix compilation of converter and is_base_of
by introducting boost::geometry::detail::numeric_cast
2024-02-25 11:07:45 +00:00
Barend Gehrels
16a7423bfa pass strategy to sort by side 2024-02-24 09:26:27 +00:00
Vissarion Fisikopoulos
d87bc244db [test] Remove tests using rescaling 2024-02-13 13:38:31 +02:00
Vissarion Fisikopoulos
68a225daff Fix numerical issue for segments sharing a common point 2024-02-13 13:38:26 +02:00
Letu Ren
a12a36f2ff Fix get_distance_measure test failure using MSVC
Log is listed as follows.
```
Running 1 test case...
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_3 ctype: e tr_side: -1 dm_side: 1
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_4 ctype: e tr_side: -1 dm_side: 1
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_5 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_6 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_7 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_8 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_9 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_10 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_11 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_12 ctype: e tr_side: -1 dm_side: 0

*** 10 failures are detected in the test module "Test Program"
```

The reason is that in MSVC the long double type is identical to the double type. We should treat 64-bit long double as double. Modification to float is made for consistency.
2023-12-08 15:56:34 +08:00
Tinko Bartels
ead9ea07f2 Fixes for miscellaneous gcc/clang warnings in the test suite. 2023-10-06 19:20:16 +08:00
Barend Gehrels
3f5c044abc [fix] include of boost range size 2023-09-29 13:00:34 +02:00
Barend Gehrels
96ba473fa4 placement of const 2023-09-29 13:00:34 +02:00
Barend Gehrels
0237a9d966 [test] add test for issue 1103 2023-09-29 13:00:34 +02:00
Barend Gehrels
4c6b365329 [test] add unit test for issue #1138 which was fixed by eb879fe 2023-09-29 13:00:34 +02:00
Barend Gehrels
0ee3d33de5 [test] add unit test for get_distance_measure showing its failures 2023-09-13 20:48:58 +02:00
Barend Gehrels
eb879fe621 [fix] avoid current get_distance_measure which can make sides indistinguishable 2023-09-13 20:48:58 +02:00
Barend Gehrels
fd209ffbf5 [fix] overlay threshold for sort_by_side
Fixes: issue #1186
2023-09-13 20:29:38 +02:00
Barend Gehrels
88ea9049ff [intersection] remove closing point correctly
* the function (in namespace detail) is split and two parts are renamed on purpose, because functionality is changed
* tests are added
* intersection.cpp split into new file intersection_integer.cpp
* testing point count now if specified
2023-09-13 20:08:21 +02:00
Vissarion Fisikopoulos
efec40628b
Merge pull request #1162 from vissarion/fix/convex_hull_compare_strategies
Fix convex hull issue by passing compare strategies
2023-07-28 11:38:21 +03:00
Vissarion Fisikopoulos
0ecc1263c7
Merge pull request #1177 from vissarion/fix/within_segment_pole
[within] Fix the case when a segment has as an endpoint a pole
2023-07-27 15:03:27 +03:00
Vissarion Fisikopoulos
7c8c60625c
Add missing headers so that all headers compile independently (#1154)
* Add missing headers so all header files compile independently

* Add github actions script to check if all headers compile independently

* Remove unused headers from algorithms (not detail) and core and fix headers in tests

* Fix typo in headers.yml and missing header in srs
2023-07-25 22:56:12 +03:00
Vissarion Fisikopoulos
3b44904c80 [test] Move tests from within to covered_by 2023-07-14 16:01:20 +03:00
Vissarion Fisikopoulos
4c65c0d936 [within] Fix special case of segment pole endpoint 2023-07-14 12:19:15 +03:00
Vissarion Fisikopoulos
2cda943f1a
Merge branch 'develop' into fix/convex_hull_compare_strategies 2023-07-05 15:41:33 +03:00
Adam Wulkiewicz
b6a7349125
Merge pull request #1160 from awulkiew/fix/vs_warnings
Fix Visual Studio warnings
2023-07-01 18:10:43 +02:00
Adam Wulkiewicz
fa4ff35d6a Fix Visual Studio warnings
- C4100 Unreferenced formal parameter
- C4127 Conditional expression is constant
- C4456 Declaration hides previous local declaration
- C4701 Potentially uninitialized local variable used
- C4702 Unreachable code
2023-07-01 17:58:04 +02:00
Vissarion Fisikopoulos
6cf09dc70c Merge branch 'develop' of github.com:boostorg/geometry into fix/convex_hull_compare_strategies 2023-06-16 16:46:29 +03:00
Vissarion Fisikopoulos
c1f7a1adbf Pass strategy to compare policy and use exact fp comparison in convex hull 2023-06-16 16:46:18 +03:00
Barend Gehrels
04796496c6 [test] change boost random to std random in robustness tests 2023-06-10 13:56:26 +02:00
Vissarion Fisikopoulos
c479ca194e
Merge pull request #1152 from vissarion/fix/cxx11_macros
Remove CXX11/14 related macros
2023-05-25 14:37:17 +03:00
Vissarion Fisikopoulos
6012885253 Remove CXX11/14 related macros 2023-05-23 15:16:08 +03:00
Vissarion Fisikopoulos
e2f0e579b8 [test] Remove trailing whitespaces in envelope_expand 2023-05-22 16:45:27 +03:00
Vissarion Fisikopoulos
bd2709766f [test] Relaxing envelope test due to invalid box computation 2023-05-22 16:43:14 +03:00
Adam Wulkiewicz
4bae6ef471 [test] Add missing includes 2023-05-17 14:53:01 +02:00
Barend Gehrels
a8bd9a0b0d [partition] minor changes and added robustness test 2023-05-08 20:31:50 +02:00
Barend Gehrels
83dab2d98c use auto instead of iterator types, and related 2023-04-23 13:31:00 +02:00
Barend Gehrels
b1bebca453 [union] fix issue 1100 2023-04-19 19:03:16 +02:00
Vissarion Fisikopoulos
a1ecf6a511
Merge pull request #1120 from vissarion/fix/buffer_tests
Fix buffer tests by using more accurate area computation
2023-03-31 10:51:24 +03:00
Barend Gehrels
47d29f9f7e restyle enrich intersection points 2023-03-22 11:29:58 +01:00
Vissarion Fisikopoulos
792fbf9761 Remove trailing whitespaces in buffer tests 2023-03-17 15:22:38 +02:00
Vissarion Fisikopoulos
4a6c2b0169 Fix buffer tests by using more accurate area computation 2023-03-17 15:20:38 +02:00
Barend Gehrels
ec7f9c9887 [union] fix missing interior ring and double traversed exterior ring
fixes: #1109 and #1108
keeps fixed: #1081
2023-02-22 13:34:29 +01:00
Barend Gehrels
f92671b933 [wkt] support tabs, newlines and code cleanup 2023-01-04 10:57:15 +01:00
Barend Gehrels
6a7224e369 [buffer] add spheroid to buffer strategies as an optional constructor parameter 2022-12-27 12:57:57 +01:00
Barend Gehrels
a908a21efe [overlay] fix cluster by adapting tolerance
Fixes #1081
2022-11-23 14:20:43 +01:00
Vissarion Fisikopoulos
e933682d1c
Merge pull request #1091 from vissarion/fix/custom_point_issue
Fix mutable point issue and typos in boundary_checker.
2022-11-16 16:09:32 +02:00