GEOS 3.11.1
Public Member Functions | Static Public Member Functions | List of all members
geos::triangulate::polygon::PolygonHoleJoiner Class Reference

#include <PolygonHoleJoiner.h>

Public Member Functions

 PolygonHoleJoiner (const Polygon *p_inputPolygon)
 
std::vector< Coordinatecompute ()
 

Static Public Member Functions

static std::vector< Coordinatejoin (const Polygon *inputPolygon)
 
static std::unique_ptr< PolygonjoinAsPolygon (const Polygon *inputPolygon)
 

Detailed Description

Transforms a polygon with holes into a single self-touching (invalid) ring by connecting holes to the exterior shell or to another hole. The holes are added from the lowest upwards. As the resulting shell develops, a hole might be added to what was originally another hole.

There is no attempt to optimize the quality of the join lines. In particular, a hole which already touches at a vertex may be joined at a different vertex.

Member Function Documentation

◆ compute()

std::vector< Coordinate > geos::triangulate::polygon::PolygonHoleJoiner::compute ( )

Computes the joined ring.

Returns
the points in the joined ring

The documentation for this class was generated from the following file: