Commit Graph

2361 Commits

Author SHA1 Message Date
Adam Wulkiewicz
4fa9f38825 [distance] Add preliminary version of Pt/Box spherical strategy. 2014-08-29 23:42:01 +02:00
Adam Wulkiewicz
ee798cdbc6 [distance] Do not use cartesian default strategy for non-cartesian Pt/Box and Box/Box 2014-08-29 22:33:34 +02:00
Adam Wulkiewicz
0c2d526faa [num_geometries] Add missing includes, variant-related 2014-08-27 13:09:04 +02:00
Adam Wulkiewicz
b51444a928 [num_segments] Add parentheses to suppress the warning about the operators precedence 2014-08-27 02:25:19 +02:00
Adam Wulkiewicz
98900f3ecf [math] Replace simple rounding with boost::math::round().
Due to a recent fix in Boost.Math for corner cases.
PR: https://github.com/boostorg/math/pull/8
Commit: fb835eb029
2014-08-27 02:05:55 +02:00
Adam Wulkiewicz
3560ae1c93 [index] fix varray const rbegin() and rend().
non-const reverse iterator type was used internally.
2014-08-25 13:25:46 +02:00
Adam Wulkiewicz
be637c0929 Merge pull request #128 from mkaravel/feature/counting-algorithms
Feature/counting algorithms
2014-08-14 12:57:48 +02:00
Menelaos Karavelas
05a0f16ad5 [doc][algorithms][num_segments] remove add_for_open argument from
doxygne documentation; update qbk documentataion to reflect that there
is only one argument to the free function
2014-08-14 00:42:17 +03:00
Menelaos Karavelas
fab29b52e2 [algorithms][num_points] in the range_count class, include the test for n == 0
inside the same if as AddForOpen (much like the previous implementation for this
class)
2014-08-12 00:33:03 +03:00
Adam Wulkiewicz
f2cad14377 Merge pull request #124 from mkaravel/feature/is_valid
Feature/is valid
2014-08-11 20:19:56 +02:00
Adam Wulkiewicz
5654a36552 [overlay] Fix unused variable warnings (with NDEBUG defined) by removal of unneeded asserts. 2014-08-11 15:42:32 +02:00
Adam Wulkiewicz
a4159a2883 [relate] Fix unused variable warning (with NDEBUG defined). 2014-08-11 15:27:54 +02:00
Menelaos Karavelas
c218f32242 [algorithms][distance] add a comment about the usage of boost::ignore_unused 2014-08-11 14:24:25 +03:00
Menelaos Karavelas
d572ee54e0 [algorithms][distance] fix unused variable warning when boost is compiled in release mode 2014-08-11 13:41:27 +03:00
Menelaos Karavelas
e472d4b439 [algorithms][num_points] re-write the num_points code so that the add_for_open
boolean argument is passed at the dispatch level as a template parameter; this
enables the firther simplification of the code in detail::counting namespace
2014-08-11 13:20:07 +03:00
Menelaos Karavelas
ebedefc1da [algorithms][num_segments] remove the boolean argument: num_segments
will always return the true number of segments of the geometry
2014-08-11 13:19:25 +03:00
Menelaos Karavelas
77f5a5b136 Merge branch 'develop' of https://github.com/boostorg/geometry into feature/counting-algorithms 2014-08-11 13:12:30 +03:00
Barend Gehrels
bcc2273e1c [overlay][enrich] rename index to turn_index and make indices std::size_t 2014-08-11 11:38:01 +02:00
Barend Gehrels
61d8cb20f6 [overlay][enrich] avoid copies of operation/ids by using const* 2014-08-11 11:34:03 +02:00
Barend Gehrels
d227658122 [overlay] use seg_id instead of other_id in enrich phase 2014-08-11 10:59:34 +02:00
Menelaos Karavelas
01043518b3 [algorithms][num_segments] simplify the computation of num_segments for boxes 2014-08-11 01:45:45 +03:00
Menelaos Karavelas
9bcdfa8c49 [algorithms][num_points] simplify the computation of num_points for boxes 2014-08-11 01:45:12 +03:00
Menelaos Karavelas
43df5efe96 [test,algorithms][util] remove ipower and its unit test 2014-08-11 01:43:37 +03:00
Bruno Lalande
40229f12e6 [union] Remove another unjustified intermediate function 2014-08-10 22:50:33 +01:00
Bruno Lalande
1221b71fc7 [union] Remove unjustified intermediate function 2014-08-10 22:50:27 +01:00
Adam Wulkiewicz
7d58d1d6a0 [index] Add alternative ABL handling - using heap instead of sorted container
Code is commented out, left "for the record" as a result of a quick test.
Add some comments about possible improvements.
2014-08-10 18:27:58 +02:00
Adam Wulkiewicz
313408d114 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-08-10 16:21:00 +02:00
Adam Wulkiewicz
8e387e853b [index] Remove unneeded pushable_array container 2014-08-10 16:20:48 +02:00
Adam Wulkiewicz
70e6700690 [index] Fix unused type warnings in experimental serialization code 2014-08-10 16:15:11 +02:00
Adam Wulkiewicz
17fd9c6fdb [index] Remove/modify some comments 2014-08-10 16:08:54 +02:00
Barend Gehrels
9df6901a87 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-08-09 22:56:59 +02:00
Barend Gehrels
f41b90f166 Merge branch 'feature/buffer' into develop 2014-08-09 22:56:36 +02:00
Menelaos Karavelas
3ecdfc4886 Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_valid 2014-08-09 00:48:33 +03:00
Menelaos Karavelas
eaf3634509 [algorithms][num_geometries][num_interior_rings][num_points][num_segments]
move concept checking from free function to struct calling the dispatch
class (i.e., after the variant resolution is done)
2014-08-08 23:31:55 +03:00
Menelaos Karavelas
b0c06af00b [algorithms][num_segments] replace unnecessary "typename" by "inline" 2014-08-08 20:50:51 +03:00
Menelaos Karavelas
66a06a20c4 [algorithms][num_points][num_geometries][num_interior_rings] replace
unnecessaty "typename" by "inline"
2014-08-08 20:48:09 +03:00
Menelaos Karavelas
e14c0aa350 [algorithms][num_points][num_interior_rings][num_geometries]
coding style change: move curly brace at beginning of next line
2014-08-08 20:43:25 +03:00
Barend Gehrels
b9c3c45902 Merge pull request #127 from mkaravel/fix/buffer-include-header
[algorithms][buffer] fix header for inclusion of disjoint
2014-08-08 19:39:27 +02:00
Adam Wulkiewicz
34c0c8940f [views] Fix compilation error in box_view caused by the change of a detail::assign_box_corners_oriented() body.
This function requires Range but was using operator[] which isn't a part of Range concept.
And box_view passed a raw pointer into this function.
So now a temporary range std::pair<> is created and passed, this might be changed if point_view stored boost:array<>.
It could be directly passed into the assign_box_corners_oriented.
2014-08-08 18:17:15 +02:00
Adam Wulkiewicz
0c78ad8489 [assign_box_corners] Fix Range concept usage. 2014-08-08 17:21:14 +02:00
Adam Wulkiewicz
800f174e28 [convert] Fix Range concept usage. 2014-08-08 17:18:06 +02:00
Adam Wulkiewicz
0101ba37c5 [append] Fix interior rings and multi Range concept usage. 2014-08-08 17:15:17 +02:00
Adam Wulkiewicz
daf4c5ac2b [index] Fix compilation error - invalid variable name in assert. 2014-08-08 17:00:56 +02:00
Adam Wulkiewicz
bd4a66ddd3 [range_by_section] Fix Range concepts conformance for interior rings and multi ranges. 2014-08-08 16:59:21 +02:00
Adam Wulkiewicz
6df273f5e7 [convert] Replace index type to unsigned 2014-08-08 16:54:34 +02:00
Adam Wulkiewicz
4089337045 [overlay] Fix Range concepts conformance for interior rings and multi ranges. 2014-08-08 16:46:27 +02:00
Adam Wulkiewicz
183124057e [index] Update copyright info 2014-08-08 15:04:10 +02:00
Adam Wulkiewicz
f24430c300 [index] Optimize R* choose_next_node - remove sort() and cleanup 2014-08-08 14:59:15 +02:00
Menelaos Karavelas
4444dd1824 [algorithms][multi][num_points] move code from multi/algorithms/ directory
to algorithms/ directory
2014-08-08 13:23:04 +03:00
Menelaos Karavelas
ba5e60fd25 [algorithms][num_segments]
* move code common to other counting algorithms in namespace
  detail::counting (in file algorithms/detail/counting.hpp)
* implement algorithm for boxes of any dimension
2014-08-08 13:20:48 +03:00