union

fun union(a: DrawnPolygon, b: DrawnPolygon, gridSize: Double = DEFAULT_GRID_SIZE, newVertexId: () -> VertexId = ::randomVertexId): List<List<Vertex>>

The rings of a together with b. @throws com.tcsappdev.worldwinddraw.core.overlay.InvalidShapeException if either is not a valid polygon.