Commit Graph

2994 Commits

Author SHA1 Message Date
sudo-panda
b5cb2a4d68 [test][io][wkt] Add test for from_wkt 2020-12-03 17:07:03 +05:30
sudo-panda
abe1339574 [test][io][wkt] modify tests for wkt to also test to_wkt
In reference to issue #654
2020-12-03 17:07:02 +05:30
Adam Wulkiewicz
95a9b43712 Merge branch 'develop' into feature/traits_make 2020-11-25 15:23:55 +01:00
Barend Gehrels
42bd7cfe95 [turns] fix precision when turns are arriving or leaving.
Then their fractions should be 1 or 0 (and not nearly so)
2020-11-25 10:21:16 +01:00
Adam Wulkiewicz
016691b15f Merge branch 'develop' into feature/traits_make 2020-11-25 00:06:55 +01:00
Barend Gehrels
ee3509f2f3 Merge pull request #769 from barendgehrels/fix/start-turns
Fix/start turns
2020-11-04 09:44:09 +01:00
Adam Wulkiewicz
4f128c4135 [test] Add comment in equals test. 2020-11-03 04:25:06 +01:00
Barend Gehrels
271c5ad52c [turns, buffer] add cases from robustness test going wrong, some fixed with start turn 2020-10-28 14:50:24 +01:00
Barend Gehrels
3e111a0302 [turns] without rescaling, include start turns in calculation 2020-10-28 14:27:26 +01:00
Adam Wulkiewicz
1243579bf0 Merge pull request #767 from awulkiew/feature/tuple
Modernize tuple-related code.
2020-10-21 16:34:03 +02:00
Adam Wulkiewicz
3402c9101d Replace boost::tuple with std::tuple or custom classes.
Modernize tuple support.
2020-10-21 16:21:06 +02:00
Barend Gehrels
9989780d41 Merge pull request #758 from barendgehrels/test/add_limits
Conform the countset, replace many #ifdefs with expectation limits
2020-10-21 10:21:17 +02:00
Barend Gehrels
5f677775ef [TEST] Conform the countset, replace many #ifdefs with expectation limits and apply it for float, double, long double (in many tests) 2020-10-21 10:18:56 +02:00
Adam Wulkiewicz
e3b190c5b2 Merge pull request #755 from ayaankhan98/develop
[fix] #750: misspelled config macros
2020-10-16 16:26:09 +02:00
Barend Gehrels
6e5d9a136f Merge pull request #762 from barendgehrels/test/robustness
[test] Update robustness tests:
2020-10-13 18:26:11 +02:00
Barend Gehrels
29d0a0fc5a [test] Update robustness tests: Remove boost.timer, adapt for multi precision, align with each other 2020-10-07 16:50:06 +02:00
Barend Gehrels
45d624af9b [cleanup] remove HAVE_TTMATH and other occurances of ttmath 2020-10-07 14:05:28 +02:00
Barend Gehrels
869e72fc01 Merge pull request #757 from barendgehrels/test/remove-unused-numeric-types
Clean up antique usage of numeric types in tests and documentation
2020-10-07 10:09:25 +02:00
Adam Wulkiewicz
8ec873c773 Merge branch 'develop' into feature/traits_make 2020-10-01 19:38:00 +02:00
Adam Wulkiewicz
ab9f1de1ad Merge pull request #748 from awulkiew/feature/type_traits
Remove direct usage of Boost.MPL and Boost.TypeTraits from the library.
2020-10-01 19:06:51 +02:00
Barend Gehrels
3272220a3c [test][doc] Clean up numeric types in tests and adapt documentation 2020-09-30 11:20:44 +02:00
Barend Gehrels
f77aeabc24 [buffer][test] update robustness test for buffer 2020-09-30 10:15:32 +02:00
Ayaan Khan
83d8987426 [fix] #750: misspelled config macros 2020-09-24 12:39:12 +05:30
Barend Gehrels
5fe26e45b4 Merge pull request #752 from barendgehrels/buffer/fix_type_conflicts
[buffer] Several changes necessary to handle different types
2020-09-13 22:06:09 +02:00
Adam Wulkiewicz
8763d3cae3 [algorithms] Replace mpl::vector_c with std::integer_sequence in sectionalize. 2020-09-11 13:50:04 +02:00
Barend Gehrels
9e1a4373dc [buffer] Several changes necessary to handle different types (float, long double, boost MP) 2020-09-09 14:11:36 +02:00
Adam Wulkiewicz
c63e7a8394 Move is_range util to range.hpp to avoid Boost.Range/MPL dependency in type_traits.hpp 2020-09-03 16:24:29 +02:00
Adam Wulkiewicz
2654215e38 [test] Replace Boost.MPL/TypeTraits with std type_traits in tests. 2020-09-03 13:37:15 +02:00
Adam Wulkiewicz
5ca542fc4f Merge pull request #726 from awulkiew/feature/strategies
Umbrella strategies.
2020-08-28 16:16:25 +02:00
Adam Wulkiewicz
70e505bb15 [test] Add tests for constexpr. 2020-08-27 15:28:21 +02:00
Adam Wulkiewicz
0166c8ea6e Merge pull request #743 from awulkiew/feature/for_each
Refactor for_each_x and implement new algorithms.
2020-08-24 12:37:23 +02:00
Adam Wulkiewicz
7ef3117f27 [for_each] Refactor for_each_x and implement new algorithms.
for_each_range now expects functors instead of structs with apply()
member function.

for_each_segment now calls functor also for degenerated ranges for
consistency with segment_iterator.

New algorithms based on std::all_of, std::any_of and std::none_of
- all_points_of, any_point_of, none_point_of
- all_segments_of, any_segment_of, none_segment_of
- all_ranges_of, any_range_of, none_range_of

New algorithms used in several places in the library.

This code requires C++14.
2020-08-24 12:28:43 +02:00
Barend Gehrels
7739109b3b [get_turn_info] Remove the recently added is_ii 2020-08-12 11:39:22 +02:00
Barend Gehrels
8251f19331 Merge pull request #741 from barendgehrels/fix/handle_as_touch
Fix/handle as touch
2020-08-10 20:46:00 +02:00
Adam Wulkiewicz
52cceae021 [strategies] Relocate area, envelope and expand strategies. 2020-08-05 22:59:13 +02:00
Barend Gehrels
adef6b24de [turns] handle ii-situation in touch,
which is a new situation which needs to be handled in the handle-as-touch,
in last commit.
2020-08-05 11:10:15 +02:00
Barend Gehrels
dfbbfc0a87 [turns] if the touch-interior touches near the end (near the IP), then handle
it as if it is a touch
2020-08-05 10:43:35 +02:00
Adam Wulkiewicz
9ede81c724 Merge pull request #738 from awulkiew/fix/direct_formulas2
[formulas] Normalize resulting longitudes in direct formulas.
2020-07-31 23:43:29 +02:00
Adam Wulkiewicz
36298d6324 [formulas] Normalize resulting longitudes in direct formulas. 2020-07-31 19:44:18 +02:00
Barend Gehrels
9759656d2b Merge pull request #736 from barendgehrels/fix/imperfect-touch
Fix errors in some floating point cases
2020-07-22 11:57:35 +02:00
Barend Gehrels
0969372147 [get_turns] use distance measures for side, and handle situation
with an imperfect touch (floating point issue)
2020-07-22 11:53:48 +02:00
Barend Gehrels
761170b0b4 [intersection] check for disjoint-by-range.
Without it, in FP calculations, for nearly collinear segments, it might happen that an intersection is calculated even if the ranges are farther apart from each other
2020-07-15 12:45:34 +02:00
Adam Wulkiewicz
a5b46d0f8b [algorithms][strategies] Add umbrella strategies for area, envelope and expand. 2020-07-10 12:58:23 +02:00
Adam Wulkiewicz
d3b96b17af [test] Close comment to suppress gcc warning. 2020-07-02 17:22:12 +02:00
Barend Gehrels
9cbb2c242e [test] Remove unused defines, write test configuration 2020-06-24 12:46:06 +02:00
Barend Gehrels
d347251055 [traversal] Support additional cluster exit functionality.
This makes it more efficient too (sort-by-side one time less).
This fixes some cases in buffer when rescaling is turned off.
2020-06-24 12:36:30 +02:00
Barend Gehrels
3b3c6d3938 Merge pull request #723 from barendgehrels/test/mark_failures
[test] update testsuite
2020-06-24 11:15:31 +02:00
Barend Gehrels
a09b9f4b51 [test] update testsuite, write expected failures (if all failures are enabled),
use optional counts for difference tests.
2020-06-10 14:27:42 +02:00
Adam Wulkiewicz
b7711c3e6c [test][arithmetic] Fix intinite_line_functions test. 2020-06-07 02:21:18 +02:00
Adam Wulkiewicz
a92b5e36fc Merge pull request #695 from awulkiew/feature/setops_output
Support tupled-output in difference, sym_difference and union_.
2020-05-13 17:04:04 +02:00