From c27159ad2592564a59946592b456fd577bb27179 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Silva Date: Mon, 22 Jul 2024 12:40:30 -0300 Subject: [PATCH] Expanding SpatialTree initializer to accept any sequence of Element type --- .../SpatialPartitioning/SpatialTree/SpatialTree.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/GeometriaAlgorithms/SpatialPartitioning/SpatialTree/SpatialTree.swift b/Sources/GeometriaAlgorithms/SpatialPartitioning/SpatialTree/SpatialTree.swift index e61e0b33..1e4a66de 100644 --- a/Sources/GeometriaAlgorithms/SpatialPartitioning/SpatialTree/SpatialTree.swift +++ b/Sources/GeometriaAlgorithms/SpatialPartitioning/SpatialTree/SpatialTree.swift @@ -44,7 +44,7 @@ public struct SpatialTree: SpatialTreeType where Element /// - maxElementsPerLevelBeforeSplit: The maximum number of elements per /// spatial tree subdivision before an attempt to subdivide it further is done. public init( - _ geometryList: [Element], + _ geometryList: some Sequence, maxSubdivisions: Int, maxElementsPerLevelBeforeSplit: Int ) {