Commit Graph

2248 Commits

Author SHA1 Message Date
Barend Gehrels
2cd7615435 [buffer] side_straight strategy, promote type 2014-07-20 16:52:26 +02:00
Barend Gehrels
77b2723935 [buffer] make miter_limit flexibel and correct IP to exactly that limit 2014-07-20 16:38:32 +02:00
Barend Gehrels
804fea10e3 [buffer][fix] avoid warning 2014-07-20 15:58:20 +02:00
Barend Gehrels
384632c572 [buffer] change default constructors for round strategies and
changed corresponding samples (often omitting the number for non relevant
strategies)
2014-07-20 15:51:49 +02:00
Barend Gehrels
487609b233 [buffer][doc] Enhance doc 2014-07-20 13:45:58 +02:00
Barend Gehrels
d945001bbf [buffer][doc] Add documentation for side_straight, extended doc for buffer with strategies 2014-07-20 13:29:07 +02:00
Barend Gehrels
6100b695be [buffer][doc] Enhancements, cross-links, doc-fixes 2014-07-20 11:32:02 +02:00
Barend Gehrels
0e77ef5342 [buffer] rename buffer_side to side_straight to make it consistent with other buffer strategies
and buffer is already part of the namespace
2014-07-20 10:52:48 +02:00
Barend Gehrels
0b635e342d [buffer] rename buffer_circle to point_circle to have it consistent with other strategies,
and buffer is already in the namespace. same for buffer_square -> point_square
2014-07-20 10:38:40 +02:00
Barend Gehrels
62c821297e [buffer][doc] Avoid having apply and other buffer-strategy members in the doc
They are not relevant for the user. They should only be relevant for users developing
their own strategies, but that should be documented in the (upcoming) strategy concepts
2014-07-20 10:13:32 +02:00
Barend Gehrels
c12701bb40 [buffer] documentation of 6 distance strategies 2014-07-19 23:05:45 +02:00
Barend Gehrels
46068123b9 [buffer] create documentation about PointStrategy (buffer_circle)
add buffer_square as alternative
2014-07-19 14:36:39 +02:00
Barend Gehrels
bfa80944ec [buffer] avoid compiler warnings 2014-07-18 21:56:11 +02:00
Barend Gehrels
e4d40a2287 [buffer] rename CircleStrategy template argument to PointStrategy because
it might also generate squares etc.
2014-07-18 21:29:59 +02:00
Barend Gehrels
d3b135a939 [buffer] use promoted type and made variables const 2014-07-18 20:57:56 +02:00
Adam Wulkiewicz
6ea0517b38 Merge pull request #96 from mkaravel/feature/distance
Optimize distance computations for multi-to-multi and single-to-multi
2014-07-17 02:38:57 +02:00
Menelaos Karavelas
fa203789db [algorithms][distance] check distance against 0 only when the minimum
distance is updated
2014-07-17 02:30:21 +03:00
Adam Wulkiewicz
9dfc90f151 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-07-16 20:50:12 +02:00
Adam Wulkiewicz
36da684609 [winding] Add winding_side_equal optimized for cartesian CS. 2014-07-16 20:44:07 +02:00
Barend Gehrels
5df31ddd0e [buffer] add documentation for buffer with 5 strategies 2014-07-16 17:01:50 +02:00
Barend Gehrels
97fd8f5332 [buffer] move buffer_inserter to namespace detail::buffer, add overload using 5 strategies 2014-07-16 16:58:02 +02:00
Barend Gehrels
038253e8f5 [buffer] remove end_skip strategy 2014-07-16 15:21:11 +02:00
Barend Gehrels
61ed918240 [buffer] add side/circle strategies to include 2014-07-16 15:12:52 +02:00
Barend Gehrels
bac1ac66af [buffer] avoid having point types in strategies which can be deferred 2014-07-16 15:11:55 +02:00
Barend Gehrels
4966ff5359 [buffer] removed many unnecessary includes from buffer_side 2014-07-16 11:39:13 +02:00
Barend Gehrels
fc0819b8ae [buffer] removed non-used phase parameter 2014-07-16 11:36:06 +02:00
Barend Gehrels
2bdca94e52 [buffer] changed comments 2014-07-16 11:35:29 +02:00
Barend Gehrels
0f027b5ff9 [buffer] add buffer_circle strategy for points and multi-points, and pass
it all the way through the dispatches
2014-07-16 11:31:35 +02:00
Barend Gehrels
57854c2765 [buffer] optionally simplify using ax strategy 2014-07-16 10:45:14 +02:00
Barend Gehrels
dc46575175 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-07-15 22:37:41 +02:00
Adam Wulkiewicz
e3f778511b Merge pull request #95 from awulkiew/feature/point_in_geometry
Fix for within() - ticket https://svn.boost.org/trac/boost/ticket/9628
2014-07-14 23:20:16 +02:00
Adam Wulkiewicz
2ba3e9a95b [strategies][winding] Replace Points creation using copy-ctors with default-ctors + set<>()
Also add some comments about what's going on in the code.
2014-07-14 23:17:09 +02:00
Barend Gehrels
9ed4d83441 [extensions][offset] Let offset compile again.
Note: it does not generate correct offsets!
2014-07-14 22:00:57 +02:00
Barend Gehrels
c5241dd8ee [distance] added missing include file 2014-07-14 21:54:01 +02:00
Adam Wulkiewicz
edf2c00db6 [within][winding] Add more robust calculation of sides in winding strategy.
This commit fixes the ticket https://svn.boost.org/trac/boost/ticket/9628.
The side is calculated always WRT the vertical segment if the p<1> is "equal" to one of the segment endpoint's <1>.
For more information see the comment in the code.
2014-07-14 16:05:26 +02:00
Menelaos Karavelas
9164a5bc0c [multi][algorithms][num_points] add include for std::size_t;
qualify with std:: an occurrence of unqualified size_t;
2014-07-14 14:44:22 +03:00
Adam Wulkiewicz
3e9f1296c5 [relate] Add 'const' keyword to declarations of not modified variables. 2014-07-13 01:16:19 +02:00
Marcel Raad
ca96640521 Fix MSVC compiler warnings
This removes unused variables and redundant re-declarations to silence
warnings about variable shadowing. Tested on MSVC 14 CTP2.
2014-07-12 13:18:47 +02:00
Barend Gehrels
96d8f53fbc [buffer] Avoid accessing pieces if no pieces were added 2014-07-12 11:42:27 +02:00
Menelaos Karavelas
350ca25ccd [algorithms][distance] add dispatch for the three multigeometry-to-ring combinations 2014-07-11 17:10:14 +03:00
Menelaos Karavelas
8df21c677e [algorithms][distance] add dispatch for the ring/ring combination 2014-07-11 17:09:15 +03:00
Adam Wulkiewicz
2a6da93c85 [core][doc] Improve template parameter name and add the description. 2014-07-11 02:44:55 +02:00
Adam Wulkiewicz
03a1fbc91b [arithmetic][doc] Improve functions parameters types names and their description. 2014-07-11 02:41:54 +02:00
Adam Wulkiewicz
bd76327102 Merge pull request #84 from mkaravel/feature/distance
Feature/distance
2014-07-10 23:35:37 +02:00
Adam Wulkiewicz
fbe09296fb Merge pull request #86 from mkaravel/feature/length_perimeter_result
Feature/length perimeter result
2014-07-10 23:35:26 +02:00
Adam Wulkiewicz
b9fecf0887 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-07-10 16:41:50 +02:00
Adam Wulkiewicz
02cfd55510 [centroid][doc] Add description for centroid_exception member functions. 2014-07-10 16:40:45 +02:00
Menelaos Karavelas
b37ea9c8b4 [algorithms][comparable distance] implement variant support as in
all other algorithms
2014-07-10 11:30:47 +03:00
Menelaos Karavelas
9dff7bae4b [algorithms][distance] polish code (among other things, keep lines
up to 80 characters long)
2014-07-10 11:29:58 +03:00
Menelaos Karavelas
a3d1f1ce73 [strategies][comparable distance (result)] implement comparable distance
result variant support as in all other algorithms
2014-07-10 11:28:29 +03:00