Skip to content

Commit 6c76450

Browse files
fix Builder.isEmpty
1 parent 84d8a71 commit 6c76450

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Aardvark.Geometry.Quadtree/Builder.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module Builder =
5858

5959
invariantm (rootCell.Exponent < requiredRootCellSplitLimit)
6060
(fun () -> sprintf "Expected root cell exponent %d to be smaller than requiredRootCellSplitLimit %d." rootCell.Exponent requiredRootCellSplitLimit)
61-
"4911adf3-7b87-4234-9bcc-bc3076df846e"
61+
"7c86e0cc-950f-470f-a1c5-7cbcff1173d4"
6262

6363
if config.Verbose then
6464
printfn "[build'] must adjust root cell %A exponent to %d" rootCell requiredRootCellSplitLimit
@@ -331,7 +331,7 @@ type Builder () =
331331

332332
if isEmpty then
333333
layerCount <- patch.Layers.Length
334-
isEmpty <- true
334+
isEmpty <- false
335335

336336
invariantm
337337
(patch.Layers.Length = layerCount)
@@ -374,12 +374,12 @@ type Builder () =
374374
/// Add multiple patches.
375375
member this.AddRange (patches : seq<LayerSet>) : unit =
376376
for patch in patches do this.Add(patch)
377-
377+
378378
/// Build a quadtree from all the patches that have been added to this builder.
379379
member this.Build (config : BuildConfig) : QNodeRef option =
380380

381381
let mutable mergesCount = 0
382-
382+
383383
patches
384384
// (1) sort per-resolution patch lists from coarse to fine resolution ...
385385
|> Seq.sortByDescending (fun kv -> kv.Key) |> Seq.map (fun kv -> kv.Value)
@@ -395,7 +395,7 @@ type Builder () =
395395
Quadtree.Merge Dominance.SecondDominates state item |> Some
396396
)
397397
None // initial state
398-
398+
399399
/// Build a quadtree from all the patches that have been added to this builder.
400400
member this.Build2 (config : BuildConfig) : QNodeRef option =
401401
let allPatches = this.GetPatches()

0 commit comments

Comments
 (0)