Boost.Geometry    Boost C++ Libraries
Functions
clear: clear geometries

Functions

template<typename Geometry >
void boost::geometry::clear (Geometry &geometry)
 Clears a linestring, ring or polygon (exterior+interiors) or multi*. More...
 

Detailed Description

Function Documentation

template<typename Geometry >
void boost::geometry::clear ( Geometry &  geometry)

Clears a linestring, ring or polygon (exterior+interiors) or multi*.

Generic function to clear a geometry. All points will be removed from the collection or collections making up the geometry. In most cases this is equivalent to the .clear() method of a std::vector<...>. In the case of a polygon, this clear functionality is automatically called for the exterior ring, and for the interior ring collection. In the case of a point, boxes and segments, nothing will happen.

Template Parameters
GeometryAny type fulfilling a Geometry Concept
Parameters
geometryA model of the specified concept which will be cleared
Note
points and boxes cannot be cleared, instead they can be set to zero by "assign_zero"

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen