Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext
return_buffer

Calculates the buffer of a geometry.

Description

The free function return_buffer calculates the buffer (a polygon being the spatial point set collection within a specified maximum distance from a geometry) of a geometry. This version with the return_ prefix returns the buffer, and a template parameter must therefore be specified in the call..

Synopsis

template<typename Output, typename Input, typename T, >
Output return_buffer(Input const & geometry, T const & distance, T const & chord_length = -1)

Parameters

Type

Concept

Name

Description

Output

Any type fulfilling a Geometry Concept

-

Must be specified

Distance

numerical type (int, double, ttmath, ...)

-

Must be specified

Input const &

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

T const &

distance

The distance to be used for the buffer

T const &

chord_length

(optional) The length of the chord's in the generated arcs around points or bends

Returns

The calculated buffer

Header

Either

#include <boost/geometry/geometry.hpp>

Or

#include <boost/geometry/algorithms/buffer.hpp>


PrevUpHomeNext