ClosedLoopWithHoles

Namespace: Digi21.DigiNG.Topology
Assembly: Digi21.DigiNG.Topology

Topology polygon with its holes. The type of elements returned by TopologyAnalyzer.AnalyzeTopology.

public class ClosedLoopWithHoles : ClosedLoop

Inherits Polygon, Centroid and Entities from ClosedLoop.

Constructors

public ClosedLoopWithHoles()

Creates an empty polygon: Polygon and Centroid are null, and Entities and Holes are empty lists. Do not pass a ClosedLoopWithHoles created this way to TopologyAnalyzer.AnalyzeCentroids: it throws NullReferenceException because Polygon is null.

Properties

Property Description
List<ClosedLoop> Holes Islands inside the polygon, as ClosedLoop. Only populated if AnalyzeTopology was called with analyzePolygonRelationship set to true. Holes are also in Polygon.Holes. Each hole's Centroid is null.

Example

The TopologyAnalyzer example shows each polygon's hole count.