Commit Graph

5802 Commits

Author SHA1 Message Date
Tinko Bartels
1d5330e330 Use fp_equals comparison in side_strategy for convex_hull. 2023-10-17 01:38:50 +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
5eb6209162 [multi precision] avoid constexpr which is not supported by boost multiprecision 2023-09-29 13:00:34 +02:00
Barend Gehrels
bce027fd92 [fix] rename indices for issue 1169 2023-09-29 13:00:34 +02:00
Barend Gehrels
7dd809acd8 [doc] updated comments 2023-09-29 13:00:34 +02:00
Vissarion Fisikopoulos
065674e134 Add missing headers 2023-09-13 20:51:24 +02:00
Yuriy Chernyshov
ac9d88dc3e Replace virtual with override in exception::what() (extensions part) 2023-09-13 20:50:49 +02:00
Yuriy Chernyshov
6a1bc5e514 Replace virtual with override in exception::what() 2023-09-13 20:50:49 +02:00
Yuriy Chernyshov
1c97e9fe34 Use boost::size to allow accessing ring size via range_size method 2023-09-13 20:50:19 +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
5663d76db1 Merge pull request #1194 from awulkiew/fix/centroid_average_warning
[strategies] Fix msvc conversion warning in centroid::average
2023-09-08 13:18:51 +03:00
Vissarion Fisikopoulos
323b2ff91c Merge pull request #1195 from Lastique/feature/use_invoke_swap
Switch to `boost::core::invoke_swap`. Add missing includes.
2023-09-08 13:17:22 +03:00
Andrey Semashev
c741907296 Switch to boost::core::invoke_swap. Add missing includes.
boost::swap is deprecated and will be removed. Use boost::core::invoke_swap
as a replacement.

Also add missing includes.
2023-09-03 03:23:51 +03:00
Yuriy Chernyshov
929ca720bf Fix for extensions too 2023-09-01 18:58:18 +03:00
Yuriy Chernyshov
3502521e0a Modernize noexcept specifications 2023-09-01 18:57:00 +03:00
Adam Wulkiewicz
f52f1820ab [strategies] Fix msvc conversion warning in centroid::average 2023-09-01 16:20:40 +02:00
Yuriy Chernyshov
871767ef62 Optimize std::string::find performance a bit 2023-08-24 13:19:53 +03:00
Yuriy Chernyshov
30fa56673c Fix -Wunused-parameter warning 2023-08-24 09:10:54 +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
4c65c0d936 [within] Fix special case of segment pole endpoint 2023-07-14 12:19:15 +03:00
Vissarion Fisikopoulos
9bbb8b8a41 Update rescaling deprecation warning message 2023-07-07 13:48:53 +03:00
Vissarion Fisikopoulos
8b7e9d0749 Merge branch 'fix/convex_hull_compare_strategies' of github.com:vissarion/geometry into fix/convex_hull_compare_strategies 2023-07-06 16:27:13 +03:00
Vissarion Fisikopoulos
f719a26b44 Pass equals policy to strategies from less policy 2023-07-06 16:26:26 +03:00
Vissarion Fisikopoulos
2cda943f1a Merge branch 'develop' into fix/convex_hull_compare_strategies 2023-07-05 15:41:33 +03:00
Vissarion Fisikopoulos
a4923db148 Replace typedefs with using in compare policies 2023-07-05 14:22:09 +03:00
Vissarion Fisikopoulos
76949b255b Added less specializations with cs_tag template parameters. 2023-07-05 14:16:43 +03:00
Vissarion Fisikopoulos
e6d9ab3a8e Remove unused comments related to less compare policy 2023-07-05 13:18:44 +03:00
Adam Wulkiewicz
96845810c9 Add if constexpr macro and replace condition macro. 2023-07-01 21:26:50 +02: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
c1f7a1adbf Pass strategy to compare policy and use exact fp comparison in convex hull 2023-06-16 16:46:18 +03:00
Adam Wulkiewicz
a222ecd55d [algorithms] Check const Ring concept in calculate_point_order 2023-06-01 12:16:03 +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
568179a9c0 Merge branch 'develop' of github.com:boostorg/geometry into fix/whitespaces 2023-05-23 10:28:05 +03:00
Vissarion Fisikopoulos
ab5e61d6eb Declare move ctor as defaul to avoid ambiguous call errors (also declare as default the move assignment operator) 2023-05-17 17:30:50 +03:00
Adam Wulkiewicz
20fc428bf3 [buffer] Fix compilation error with gcc-6
Use this keyword explicitly when calling member function in lambda.
2023-05-17 14:39:30 +02:00
Adam Wulkiewicz
2cffbef040 [index] Remove Boost.Move and Boost.Preprocessor emulation of move semantics and variadic templates 2023-05-16 11:47:57 +02:00
Adam Wulkiewicz
7071251a4f Merge pull request #1140 from awulkiew/feature/dependencies
Drop dependencies, replace boost with std, remove includes
2023-05-16 10:44:31 +02:00
Barend Gehrels
a8bd9a0b0d [partition] minor changes and added robustness test 2023-05-08 20:31:50 +02:00
Barend Gehrels
03489caa55 [fix] support different geometry types
This fixes #1139 , and more required code changes.

Including unit test.
2023-05-08 20:31:01 +02:00
Adam Wulkiewicz
6cca7094c4 [extensions] Drop Boost.SharedPtr dependency 2023-04-24 18:01:54 +02:00
Adam Wulkiewicz
092ab9da34 Drop dependencies, replace boost with std, remove includes
Drop Boost.SmartPtr dependency
Drop Boost.Utility (Call Traits) dependency
Replace boost::array with std::array
Replace boost::minmax_element with std::minmax_element
Remove unneeded headers of Boost.Tuple and Boost.Algorithm
Include specific headers from Boost.StringAlgo and Boost.Thread
Use auto for iterator types
2023-04-24 18:01:31 +02:00
Barend Gehrels
ee83f57f59 [test] add custom, non copiable, non indexable geometries 2023-04-23 13:31:00 +02:00
Barend Gehrels
83dab2d98c use auto instead of iterator types, and related 2023-04-23 13:31:00 +02:00