boost::geometry::strategy::buffer::join_miter
buffer_join_miter.hpp
double double boost::geometry::strategy::buffer::join_miter::m_miter_limit m_miter_limit
boost::geometry::strategy::buffer::join_miter::join_miter
(double miter_limit=5.0)
join_miter
double miter_limit 5.0

Constructs the strategy.

miter_limit

The miter limit, to avoid excessively long miters around sharp corners

double double boost::geometry::strategy::buffer::join_miter::valid_limit (double miter_limit) const valid_limit double miter_limit

Let the buffer create sharp corners.

This strategy can be used as JoinStrategy for the buffer algorithm. It creates a sharp corners around each convex vertex. It can be applied for (multi)linestrings and (multi)polygons. If corners are sharp by themselves, the miters might become very long. Therefore there is a limit (miter_limit), in terms of the used distance, which limits their length. The miter is not changed to a bevel form (as done in some other software), it is just adapted to the specified miter_limit but keeps its miter form. If the buffer distance is 5.0, and the miter limit is 2.0, generated points will be located at a distance of at most 10.0 (2*5) units. This strategy is only applicable for Cartesian coordinate systems.

[heading Example] [buffer_join_miter] [heading Output] [$img/strategies/buffer_join_miter.png] [heading See also] \* [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)] \* [link geometry.reference.strategies.strategy_buffer_join_round join_round]

- boost::geometry::strategy::buffer::join_miter
  join_miter
- boost::geometry::strategy::buffer::join_miter
  m_miter_limit
- boost::geometry::strategy::buffer::join_miter
  valid_limit