diff --git a/src/Aardvark.Algodat.Tests/Program.cs b/src/Aardvark.Algodat.Tests/Program.cs index c17ee39b..c900cc16 100644 --- a/src/Aardvark.Algodat.Tests/Program.cs +++ b/src/Aardvark.Algodat.Tests/Program.cs @@ -2766,7 +2766,7 @@ public static async Task Main(string[] _) await CreateStore( @"W:\Datasets\Vgm\Data\structured_pointclouds\lowergetikum 20230321.e57", @"W:\Datasets\Vgm\Stores\lowergetikum 20230321.e57_0.01", - minDist: 0.01 + minDist: 0.0 ); //await Parts_Test_20231006_Merge(); diff --git a/src/Aardvark.Data.E57/ImportE57.cs b/src/Aardvark.Data.E57/ImportE57.cs index ef44ba82..2afd4035 100644 --- a/src/Aardvark.Data.E57/ImportE57.cs +++ b/src/Aardvark.Data.E57/ImportE57.cs @@ -195,7 +195,7 @@ public static IEnumerable Chunks(this Stream stream, long streamLengthInB var yieldedRecordCount = 0L; var partIndex = config.PartIndexOffset; - foreach (var data3d in header.E57Root.Data3D.Take(2)) + foreach (var data3d in header.E57Root.Data3D) { foreach (var (Positions, Properties) in data3d.StreamPointsFull(config.MaxChunkPointCount, config.Verbose, exclude)) { diff --git a/src/Aardvark.Geometry.PointSet/Octrees/Lod.cs b/src/Aardvark.Geometry.PointSet/Octrees/Lod.cs index 3138515d..ea4fd250 100644 --- a/src/Aardvark.Geometry.PointSet/Octrees/Lod.cs +++ b/src/Aardvark.Geometry.PointSet/Octrees/Lod.cs @@ -480,9 +480,30 @@ void addAttributeByRef(string kind, Durable.Def def, Func Durable.Octree.PerPointPartIndex1bReference, + short[] => Durable.Octree.PerPointPartIndex1sReference, + int[] => Durable.Octree.PerPointPartIndex1iReference, + _ => throw new Exception("Invariant 5a25f407-5ccf-4577-a7eb-c0d691093d10.") + }; + upsertData = upsertData.Add(def, key); + } + else + { + upsertData = upsertData + .Add(PartIndexUtils.GetDurableDefForPartIndices(lodQs), lodQs) + ; + } } // ... classifications ...