1[/============================================================================ 2 Boost.Geometry (aka GGL, Generic Geometry Library) 3 4 Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands. 5 Copyright (c) 2008-2013 Bruno Lalande, Paris, France. 6 Copyright (c) 2009-2013 Mateusz Loskot, London, UK. 7 8 Use, modification and distribution is subject to the Boost Software License, 9 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 10 http://www.boost.org/LICENSE_1_0.txt) 11=============================================================================/] 12 13 14[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically] 15[/ Generated from doxy/doxygen_output/xml/group__num__points.xml] 16[section:num_points num_points] 17 18'''<indexterm><primary>num_points</primary></indexterm>''' 19Calculates the number of points of a geometry. 20 21[heading Description] 22The free function num\u005fpoints calculates the number of points of a geometry. 23 24[heading Synopsis] 25``template<typename Geometry> 26std::size_t num_points(Geometry const & geometry, bool add_for_open = false)`` 27 28[heading Parameters] 29 30[table 31[[Type] [Concept] [Name] [Description] ] 32[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]] 33[[bool] [] [add_for_open] [add one for open geometries (i.e. polygon types which are not closed) ]] 34] 35 36 37[heading Returns] 38The calculated number of points 39 40[heading Header] 41Either 42 43`#include <boost/geometry.hpp>` 44 45 46Or 47 48`#include <boost/geometry/algorithms/num_points.hpp>` 49 50[include reference/algorithms/num_points.qbk] 51 52 53[endsect] 54 55