mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-02 21:02:13 +00:00
[geometry] fixed errors in overlay/follow.hpp related to proper usage of Linestring concept.
[SVN r86333]
This commit is contained in:
@@ -61,7 +61,7 @@ static inline bool last_covered_by(Turn const& turn, Operation const& op,
|
||||
<
|
||||
point_type,
|
||||
0, dimension<point_type>::value
|
||||
>::apply(point_in_between, linestring[op.seg_id.segment_index], turn.point);
|
||||
>::apply(point_in_between, *(::boost::begin(linestring) + op.seg_id.segment_index), turn.point);
|
||||
|
||||
return geometry::covered_by(point_in_between, polygon);
|
||||
}
|
||||
@@ -182,11 +182,13 @@ struct action_selector<overlay_intersection>
|
||||
// and add the output piece
|
||||
geometry::copy_segments<false>(linestring, segment_id, index, current_piece);
|
||||
detail::overlay::append_no_duplicates(current_piece, point);
|
||||
if (current_piece.size() > 1)
|
||||
if (::boost::size(current_piece) > 1)
|
||||
{
|
||||
*out++ = current_piece;
|
||||
}
|
||||
current_piece.clear();
|
||||
//traits::clear<LineStringOut>::apply(current_piece);
|
||||
geometry::clear(current_piece);
|
||||
}
|
||||
|
||||
static inline bool is_entered(bool entered)
|
||||
|
||||
Reference in New Issue
Block a user