Skip to content

Commit

Permalink
reworked kdtree loading (allows to skip master kdtree)
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Feb 20, 2024
1 parent add986b commit 45e9609
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 208 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.4.0
- KdTree loading now parametrized and allows to create kdtrees

### 1.3.0
- updated to Aardvark.Rendering 5.4
- [Rabbyte] simplified model and actions by using dropdownUnclearable
Expand Down
3 changes: 2 additions & 1 deletion src/2D3DLinking/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,11 @@ module App =
for h in patchHierarchies do

let rootTree = h.tree |> QTree.getRoot
let kd = (KdTrees.loadKdTrees' h Trafo3d.Identity true ViewerModality.XYZ OpcSelectionViewer.Serialization.binarySerializer false) false (fun _ -> failwith "no function for creating triangle sets")

yield {
patchHierarchy = h
kdTree = Aardvark.VRVis.Opc.KdTrees.expandKdTreePaths h.opcPaths.Opc_DirAbsPath (KdTrees.loadKdTrees' h Trafo3d.Identity true ViewerModality.XYZ OpcSelectionViewer.Serialization.binarySerializer)
kdTree = Aardvark.VRVis.Opc.KdTrees.expandKdTreePaths h.opcPaths.Opc_DirAbsPath kd
localBB = rootTree.info.LocalBoundingBox
globalBB = rootTree.info.GlobalBoundingBox
neighborMap = HashMap.empty
Expand Down
5 changes: 3 additions & 2 deletions src/3DGis/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -830,10 +830,11 @@ module App =
for h in patchHierarchies do

let rootTree = h.tree |> QTree.getRoot

let kd = KdTrees.loadKdTrees' h Trafo3d.Identity true ViewerModality.XYZ OpcSelectionViewer.Serialization.binarySerializer false false (fun _ _ -> failwith "no triangleset function")

yield {
patchHierarchy = h
kdTree = Aardvark.VRVis.Opc.KdTrees.expandKdTreePaths h.opcPaths.Opc_DirAbsPath (KdTrees.loadKdTrees' h Trafo3d.Identity true ViewerModality.XYZ OpcSelectionViewer.Serialization.binarySerializer)
kdTree = Aardvark.VRVis.Opc.KdTrees.expandKdTreePaths h.opcPaths.Opc_DirAbsPath kd
localBB = rootTree.info.LocalBoundingBox
globalBB = rootTree.info.GlobalBoundingBox
neighborMap = HashMap.empty
Expand Down
Loading

0 comments on commit 45e9609

Please sign in to comment.