Commit Graph

1947 Commits

Author SHA1 Message Date
Barend Gehrels
fdd983ce72 [buffer] Changes in (folder)locations of strategies, and
moved buffer_side_selector and piece_type used by strategies.
2014-06-13 21:30:53 +02:00
Barend Gehrels
c96d6394a9 [buffer] update include guards/copyright info 2014-06-13 20:45:34 +02:00
Barend Gehrels
31af14453a [buffer] Move from extensions to algorithms/detail 2014-06-13 20:26:33 +02:00
Adam Wulkiewicz
327819b687 [extensions][nsphere][test] Remove unused typedefs. Rename tests. 2014-06-13 18:06:07 +02:00
Adam Wulkiewicz
3edeaeb2af [algorithms][io][test] Fix some rather harmless conversions warnings and add /bigobj for some tests for VS. 2014-06-13 16:13:35 +02:00
Barend Gehrels
5085c749b1 [has_self_intersections] bugfix (did not return true when exception found) and
added optional parameter for non-throwing behaviour.
Use this from test_buffer instead
2014-06-12 23:00:57 +02:00
Barend Gehrels
0ecc80a10a [buffer] disable get_occupation, remove commented left_turn handling 2014-06-12 22:43:09 +02:00
Barend Gehrels
5a345ae2d4 [buffer] performance improvement - only consider overlapping pieces 2014-06-12 22:41:41 +02:00
Barend Gehrels
bdd2cc1ac6 [buffer] revert replacement of covered_by with within 2014-06-12 22:41:11 +02:00
Barend Gehrels
7531e541b2 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-06-12 18:51:44 +02:00
Barend Gehrels
d06c25bc5f [buffer] Remove helper functions now not used/need anymore 2014-06-12 18:50:47 +02:00
Adam Wulkiewicz
e277cce32f Merge pull request #57 from awulkiew/fix/boost_polygon
Fix/boost polygon
2014-06-11 16:57:38 +02:00
Barend Gehrels
0f930efb21 [buffer] enhanced (a bit) check for within piece / original
and renamed classify functions / moved code
2014-06-11 15:55:09 +02:00
Barend Gehrels
da1a8da80b [buffer] use partition to check relation turn/piece 2014-06-11 15:53:31 +02:00
Barend Gehrels
fd4f0abb1d various minor things, remove redundant static, fix capitals, typo 2014-06-11 15:16:29 +02:00
Barend Gehrels
623f2896e0 [buffer] Update robust_envelope at inserting robust intersection point 2014-06-11 14:25:28 +02:00
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
Adam Wulkiewicz
400eec193b [adapted] Specialize resize<> trait for polygon_data required by Ring concept 2014-06-10 00:17:12 +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