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
This is an older version of Boost and was released in 2024. The current version is 1.89.0.
Enumerates options for defining if polygons are open or closed.
The enumeration closure_selector describes options for if a polygon is open or closed. In a closed polygon the very first point (per ring) should be equal to the very last point. The specific closing property of a polygon type is defined by the closure metafunction. The closure metafunction defines a value, which is one of the values enumerated in the closure_selector
enum closure_selector {open = 0, closed = 1, closure_undertermined = -1};
|
Value |
Description |
|---|---|
|
open |
Rings are open: first point and last point are different, algorithms close them explicitly on the fly |
|
closed |
Rings are closed: first point and last point must be the same. |
|
closure_undertermined |
(Not yet implemented): algorithms first figure out if ring must be closed on the fly |
Either
#include <boost/geometry.hpp>
Or
#include <boost/geometry/core/closure.hpp>