Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
polygonset.hpp File Reference
#include "shape/polygonwithholes.hpp"
#include <algorithm>
#include <cassert>
#include <compare>
#include <concepts>
#include <cstddef>
#include <iterator>
#include <optional>
#include <ostream>
#include <ranges>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  pgl::PolygonSet< PointType_, TLabel >
 Set of closed regions with pairwise disjoint interiors. More...
class  pgl::PolygonSet< PointType_, TLabel >::VertexIterator
 Forward iterator flattening every component's rings into one vertex sequence, components in canonical order. More...

Namespaces

namespace  pgl

Functions

 pgl::PolygonSet () -> PolygonSet< Point<>, NoLabel >
template<PolygonWithHolesConcept Component>
 pgl::PolygonSet (Component &&) -> PolygonSet< typename std::remove_cvref_t< Component >::PointType, NoLabel >
template<std::ranges::input_range ComponentRange>
requires detail::is_polygon_with_holes_v<std::ranges::range_value_t<ComponentRange>>
 pgl::PolygonSet (ComponentRange &&) -> PolygonSet< typename std::ranges::range_value_t< ComponentRange >::PointType, NoLabel >
template<std::ranges::input_range ComponentRange>
requires detail::is_polygon_with_holes_v<std::ranges::range_value_t<ComponentRange>>
 pgl::PolygonSet (ComponentRange &&, bool) -> PolygonSet< typename std::ranges::range_value_t< ComponentRange >::PointType, NoLabel >
template<class PointType, class LabelType, class TranslationNumber, class TranslationLabel>
constexpr auto pgl::operator- (const PolygonSet< PointType, LabelType > &set, const Point< TranslationNumber, TranslationLabel > &translation)
 Returns a copy of a set translated by the opposite point.
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator* (const PolygonSet< PointType, LabelType > &set, const Scalar &scalar)
template<class Scalar, class PointType, class LabelType>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator* (const Scalar &scalar, const PolygonSet< PointType, LabelType > &set)
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator/ (const PolygonSet< PointType, LabelType > &set, const Scalar &scalar)
template<class PointType, class LabelType>
std::ostream & pgl::operator<< (std::ostream &stream, const PolygonSet< PointType, LabelType > &set)
 Streams a set as PolygonSet[components...].