Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void MergeAdjacentPolygons(List<PolygonD>)

  • Declared in: RT.Util.Geometry.GeomUt

Declaration

public static void MergeAdjacentPolygons(
    List<PolygonD> polygons
)

Summary

Merges adjacent (touching) polygons and removes the touching edges. Behaviour is undefined if any polygons overlap. Only exactly matching edges are considered, and only if they have the opposite sense to each other. Example use case: simplifying subsets of VoronoiDiagram polygons.

Parameters

List<PolygonD>polygons Polygons to merge. This method removes entries from this list, and modifies polygon vertices.