Commit Graph

1930 Commits

Author SHA1 Message Date
Barend Gehrels
0287c1d3bb [partition] support heterogenous collections 2014-06-11 14:17:09 +02:00
Barend Gehrels
88db68b6f7 [buffer][get_piece_turns] comments/layout changes 2014-06-11 13:01:11 +02:00
Barend Gehrels
22a8870012 [buffer] remove specific assign for buffer and is_opposite
opposite information is not used anymore
2014-06-11 12:55:55 +02:00
Barend Gehrels
14f3d76505 [buffer] move calculate_turns to get_piece_turn visitor where it is used from
this also uses the standard assign-policy for get_turn_info
2014-06-11 12:55:21 +02:00
Barend Gehrels
36708948c9 [buffer] use partition algorithm to calculate turns in piece-offsets 2014-06-11 10:51:21 +02:00
Barend Gehrels
4c7b5d3fa4 [buffer] Add robust envelope per piece
to support partition
2014-06-11 10:38:41 +02:00
Barend Gehrels
f6c5f69495 [buffer] split rescaling piece rings / turns
to support coming use of partition for calculate turns
2014-06-11 10:15:36 +02:00
Adam Wulkiewicz
a2c00c1774 [comparable_distance] Remove unneeded header include 2014-06-10 16:32:32 +02:00
Adam Wulkiewicz
afd0656747 [for_each] Remove unused typedefs 2014-06-10 00:20:32 +02:00
Barend Gehrels
425e1f6bb1 [buffer] remove BOOST_AUTO_TPL dependancy 2014-06-09 18:50:40 +02:00
Barend Gehrels
21382dfa1d [buffer] update copyright 2014-06-09 18:39:40 +02:00
Barend Gehrels
4ac94c1230 [buffer] Removed unused function 2014-06-09 18:37:20 +02:00
Barend Gehrels
a0c78403e2 [buffer] Enable negative buffer for polygons (deflate)
Update testcases for linestring (including Aimes-list now working)
Fix test for distance (right.distance was only done for SVG)
2014-06-09 18:37:01 +02:00
Barend Gehrels
10f6753a82 [buffer] block cluster (in occupation map) if one is blocked
Also reverse iteration order avoiding get_left_turns called more than once per cluster
Also classify IP's on helper segments as within
2014-06-09 16:32:36 +02:00
Barend Gehrels
447fd7edd2 [buffer] get occupation vectors by rescaled offsetted points
This fixes the last case rt_p20

Check if the occupation vectors are short (length 1). This indicates a rounding issue.
If so, map again but use neighbouring cells.

Alas we have to do this, but still better than the former FP implementation.

Also, we map only points on offsetted borders now, and return if the map is empty,
to improve performance.
2014-06-09 15:07:47 +02:00
Barend Gehrels
cfbecc9935 [buffer] remove more unused functionality 2014-06-09 12:39:58 +02:00
Barend Gehrels
f822df3545 [buffer] remove uu processing which is redundant 2014-06-09 12:16:16 +02:00
Barend Gehrels
c836fab395 [buffer] remove more now unused functionality 2014-06-09 12:05:55 +02:00
Barend Gehrels
0e666541e7 [buffer] skip within check where not necessary 2014-06-09 11:52:39 +02:00
Barend Gehrels
17d027ec2d [buffer] remove now unused functionality 2014-06-09 11:51:01 +02:00
Barend Gehrels
4002e3d36a [buffer] update svg-mapping debug class 2014-06-09 11:16:10 +02:00
Barend Gehrels
432d62809d [buffer] remove old left-turn approach 2014-06-09 11:15:13 +02:00
Barend Gehrels
11c71d161a [occupation_info] add once instead of twice
preparing for new get_left_turns
2014-06-08 21:57:24 +02:00
Barend Gehrels
a746e7323d [buffer] Remove occupation_map, use std::map instead
turn_indices from occupation_map were not used anymore
2014-06-08 20:21:31 +02:00
Barend Gehrels
5a85076f4b [get_left_turns] reimplement using integer arithmetic
including unit test
2014-06-08 19:03:11 +02:00
Barend Gehrels
5e6d542d81 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-06-08 17:19:08 +02:00
Adam Wulkiewicz
928f1aad70 [algorithms/detail] Rename const_conformant<> to copy_const<> and implement it without MPL and TypeTraits 2014-06-08 16:31:20 +02:00
Adam Wulkiewicz
1e6f7164e1 [algorithms] Drop TypeOf dependency 2014-06-08 13:32:00 +02:00
Adam Wulkiewicz
e52a297c98 [io] Drop TypeOf dependency. Add detail::interior_ring_iterator<>. 2014-06-08 13:05:44 +02:00
Barend Gehrels
79cbf6f18c [buffer] Occupation map now makes use of robust points
(this adds one failing testcase, to be investigated,
 but further simplifies/enhances all code)
2014-06-08 12:46:41 +02:00
Barend Gehrels
aec2b7801e [buffer] Cleanup comments/unused functionality 2014-06-08 10:58:47 +02:00
Adam Wulkiewicz
4626d53ead [algorithms/detail] Add interior_iterator<> tool and use it in places where BOOST_AUTO_TPL was used to get rid of unreadable, long types 2014-06-08 02:23:59 +02:00
Adam Wulkiewicz
18746a4293 [within] Remove not needed TypeOf header 2014-06-08 01:13:26 +02:00
Adam Wulkiewicz
3b9d4eba02 [point_in_geometry] Fix compilation error - replace BOOST_AUTO_TPL - drop TypeOf dependency 2014-06-08 00:27:35 +02:00
Adam Wulkiewicz
86c91f4b53 [algorithms][multi] Move the code of some algorithms from multi/ dir and drop TypeOf dependency.
Modified algorithms: area, centroid, clear, convert, length, perimeter, simplify.
Update included headers paths to reflect the changes.
2014-06-08 00:03:14 +02:00
Adam Wulkiewicz
52ece6c0e4 [algorithms] Move the code of some algorithms from multi/ and drop TypeOf dependency.
Algorithms moved: correct, envelope, equals, length, num_geometries, perimeter, remove_spikes.
2014-06-07 22:48:20 +02:00
Adam Wulkiewicz
68e7bacb7e [reverse] Move the code from multi/ and drop TypeOf dependency 2014-06-07 18:16:06 +02:00
Adam Wulkiewicz
2460f51614 [transform] Move the code from multi/ and drop TypeOf dependency 2014-06-07 18:01:23 +02:00
Adam Wulkiewicz
c2d00d8619 [unique] Move from multi/ and drop TypeOf dependency 2014-06-07 17:43:07 +02:00
Adam Wulkiewicz
f0b119141a [for_each] Move from multi/ and drop TypeOf dependency 2014-06-07 16:54:37 +02:00
Barend Gehrels
9c30fd698a Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-06-07 12:39:48 +02:00
Barend Gehrels
8a417e6fa9 [buffer] Classify turn-points using rescaled rings
This makes side_on_convex_range and intersection_side redundant
It fixes all but one (p20) remaining cases for polygons
2014-06-07 12:38:02 +02:00
Adam Wulkiewicz
f6ba62a43a [comparable_distance][test][extensions] Break comparable_distance into interface and implementation.
Also remove geometry.hpp header include from comparable_distance test and nsphere header included in all tests.
2014-06-06 00:29:31 +02:00
Adam Wulkiewicz
7cdbcf5fee [extensions/nsphere] Enable commented-out tests and change point_in_nsphere strategy WRT areal_tag removal workaround 2014-06-05 19:25:45 +02:00
Adam Wulkiewicz
55a8ad35f8 [extensions] Fix NSphere compilation issues.
The fixes are rather temporary workarounds (see comments in the code).
2014-06-05 19:06:06 +02:00
Adam Wulkiewicz
51fc37e43b [extensions][offset] Fix compilation errors 2014-06-05 18:03:14 +02:00
Adam Wulkiewicz
46b46ee080 Merge pull request #55 from awulkiew/refactor_multi
Moving geometry/multi/ into geometry/
2014-06-05 16:16:08 +02:00
Adam Wulkiewicz
d8baba40bd [multi] Remove multi-geometries concepts from multi/multi.hpp since they are included in geometries/concepts/check.hpp 2014-06-05 15:24:01 +02:00
Adam Wulkiewicz
5903c5a292 [extensions] Replace includes of headers moved from multi/ directory. 2014-06-04 19:39:26 +02:00
Adam Wulkiewicz
2a86cf0c20 [geometry] Replace includes of headers from algorithms/detail moved from multi/ directory. 2014-06-04 18:43:42 +02:00