Opened 7 years ago
#11542 new Bugs
Using geometry buffer with integer coordinate type
Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|
Milestone: | To Be Determined | Component: | geometry |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | geometry buffer | Cc: |
Description
Applied the following patch to allow use of buffer when using an integer coordinate type. Found in 1_58, also present in 1_59.
diff -Naur boost_1_58_0/boost/geometry/strategies/cartesian/buffer_point_square.hpp boost_1_58_0.new/boost/geometry/strategies/cartesian/buffer_point_square.hpp --- boost_1_58_0/boost/geometry/strategies/cartesian/buffer_point_square.hpp 2015-03-30 17:25:04.000000000 +0100 +++ boost_1_58_0.new/boost/geometry/strategies/cartesian/buffer_point_square.hpp 2015-07-01 15:42:33.174193134 +0100 @@ -71,10 +71,10 @@
DistanceType const& distance, OutputRange& output_range) const
{
- add_point(point, distance, -1.0, -1.0, output_range);
- add_point(point, distance, -1.0, +1.0, output_range);
- add_point(point, distance, +1.0, +1.0, output_range);
- add_point(point, distance, +1.0, -1.0, output_range);
+ add_point(point, distance, -1, -1, output_range); + add_point(point, distance, -1, +1, output_range); + add_point(point, distance, +1, +1, output_range); + add_point(point, distance, +1, -1, output_range);
Close it: output_range.push_back(output_range.front());