num_points

# number of points: calculate number of points of a geometry

typename Geometry
std::size_t std::size_t boost::geometry::num_points (Geometry const &geometry, bool add_for_open=false) num_points Geometry const & geometry bool add_for_open false

Calculates the number of points of a geometry.

The free function num_points calculates the number of points of a geometry. Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

add_for_open

add one for open geometries (i.e. polygon types which are not closed)

The calculated \1

[include reference/algorithms/num_points.qbk]