Skip to content

Commit

Permalink
Lod: ILodData now provides dependencies property
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Apr 19, 2016
1 parent 4d53e11 commit de7a85f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Aardvark.Base.Rendering/LoD.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

open System.Collections.Generic
open Aardvark.Base
open Aardvark.Base.Incremental

[<CustomEquality; NoComparison>]
type LodDataNode =
Expand All @@ -22,6 +23,7 @@ type LodDataNode =
type ILodData =
abstract member BoundingBox : Box3d
abstract member Traverse : (LodDataNode -> bool) -> unit
abstract member Dependencies : list<IMod>
abstract member GetData : node : LodDataNode -> Async<IndexedGeometry>

[<AutoOpen>]
Expand Down
3 changes: 2 additions & 1 deletion src/Aardvark.SceneGraph/PointCloud.fs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ module PointCloudRenderObjectSemantics =
let view = view.GetValue self
let proj = proj.GetValue self
let wantedNearPlaneDistance = wantedNearPlaneDistance.GetValue self


for a in node.Data.Dependencies do a.GetValue self |> ignore
let set = node.Data.Rasterize(view, proj, wantedNearPlaneDistance)

let add = set |> Seq.filter (self.Content.Contains >> not) |> Seq.map Add
Expand Down
2 changes: 2 additions & 0 deletions src/Demo/Examples/LoD.fs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ module LoD =
()
traverse 0 root

member x.Dependencies = []

member x.GetData (cell : LodDataNode) =
async {
//do! Async.SwitchToThreadPool()
Expand Down
2 changes: 2 additions & 0 deletions src/Demo/Examples/Vulkan.fs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ module Lod =
()
traverse 0 root

member x.Dependencies = []

member x.GetData (cell : LodDataNode) =
async {
//do! Async.SwitchToThreadPool()
Expand Down

0 comments on commit de7a85f

Please sign in to comment.