Skip to content

Commit

Permalink
moved patch to old namespace & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Oct 3, 2024
1 parent 31bb1e3 commit ee455ab
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Aardvark.Data.Opc/Patch.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,26 @@ module ViewerModality =
| ViewerModality.XYZ -> threeD
| ViewerModality.SvBR -> twoD


namespace Aardvark.SceneGraph.Opc

// in the old namespace to enable deserialization in (pickler) caches without hurdles.
type Patch =
{
level : int
info : PatchFileInfo
triangleSize : float
}

namespace Aardvark.Data.Opc

open System
open Aardvark.Base
open Aardvark.Rendering
open Aardvark.SceneGraph.Opc

type Patch = Aardvark.SceneGraph.Opc.Patch

[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module Patch =
let ofInfo (level : int) (size: float) (p : PatchFileInfo) = { level = level; info = p; triangleSize = size }
Expand Down
13 changes: 13 additions & 0 deletions src/Aardvark.Data.Opc/PatchFileInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ module internal XmlHelpers =
let prop name (p : XElement) =
(elem name p).Value.Trim()


// in the old namespace to enable deserialization in (pickler) caches without hurdles.
namespace Aardvark.SceneGraph.Opc

open Aardvark.Base

type Texture = { fileName : string; weights : string }

[<Struct; RequireQualifiedAccess>]
Expand Down Expand Up @@ -64,6 +70,13 @@ type PatchFileInfo =
Attributes : list<string>
}

namespace Aardvark.Data.Opc

open System.Xml
open System.Xml.Linq
open Aardvark.Base
open Aardvark.SceneGraph.Opc

[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module PatchFileInfo =

Expand Down
3 changes: 3 additions & 0 deletions src/Aardvark.Data.Opc/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.11.0
- moved Patch to old namespace

### 0.10.0
- moved QTree to old Aardvark.SceneGraph.Opc namespace to prevent serialization issues.

Expand Down

0 comments on commit ee455ab

Please sign in to comment.